-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathpyproject.toml
48 lines (40 loc) · 1.3 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tool.black]
line-length = 100
target_version = ['py310', 'py311', 'py312']
skip-string-normalization = true
skip-magic-trailing-comma = true
extend-exclude = ".*_pb2[.]py[i]?"
[tool.coverage.run]
include = [
# Omit files outside the current working directory.
# Note: this means coverage must be run from the cirq repo root.
# Failure to do so will result in false positives.
"./*",
]
omit = ["benchmarks/*"]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
[tool.isort]
profile = 'black'
line_length = 100
order_by_type = false # Sort alphabetically, irrespective of case.
skip_gitignore = true
combine_as_imports = true
known_first_party = ["cirq*"]
extend_skip = ["__init__.py"]
extend_skip_glob = ["*_pb2.py"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Matplotlib is currently using agg:UserWarning",
"ignore:FigureCanvasAgg is non-interactive.*cannot be shown:UserWarning",
"ignore::UserWarning:cotengra.hyperoptimizers.hyper",
]
markers = [
"rigetti_integration: tests that connect to Quil compiler or QVM.",
"slow: slow tests that should be skipped by default.",
"weekly: tests to be run only by weekly CI automation.",
]
# Silence deprecation warnings about option "asyncio_default_fixture_loop_scope"
asyncio_default_fixture_loop_scope = "function"