代码拉取完成,页面将自动刷新
[tool.black]
line-length = 100
target_version = ['py311', 'py312', 'py313']
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 = [
"^ *pass$",
"^ *raise NotImplementedError",
"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"
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["*_pb2.py*"]
[tool.ruff.lint]
select = [
# "ANN201", # missing-return-type-undocumented-public-function
# "F401", # unused-import
# "F601", # multi-value-repeated-key-literal
"F821", # undefined-name
"RUF100", # unused-noqa
"TC001", # typing-only-first-party-import
"TC002", # typing-only-third-party-import
# "TC003", # typing-only-standard-library-import
"UP006", # non-pep585-annotation
"UP007", # non-pep604-annotation-union
"UP037", # quoted-annotation
]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。