4 Star 5 Fork 2

Gitee 极速下载/Cirq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/quantumlib/cirq
克隆/下载
pyproject.toml 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
[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
]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/Cirq.git
git@gitee.com:mirrors/Cirq.git
mirrors
Cirq
Cirq
main

搜索帮助