forked from FranciscoRevson/plaquette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
102 lines (85 loc) · 2.65 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[build-system]
requires = ["setuptools>=64.0"]
build-backend = "setuptools.build_meta"
[project]
name = "plaquette"
authors = [
{name="QC Design GmbH", email="[email protected]"}
]
description = "An all-encompassing quantum error-correction software package"
dynamic = ["version", "readme", "dependencies"]
requires-python = ">=3.10"
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
keywords = ["Quantum error correction", "qec", "quantum computing", "fault tolerance"]
[project.urls]
"Homepage" = "https://docs.plaquette.design"
"Bug Tracker" = "https://github.com/qc-design/plaquette/issues"
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
allow_redefinition = true
plugins = ["pydantic.mypy"]
[tool.ruff]
select = ["B", "D", "E", "F", "I"]
ignore = ["B905"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["I"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".direnv",
".eggs",
".git",
".mypy_cache",
".pants.d",
".ruff_cache",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 88
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py310"
[project.entry-points."plaquette.device"]
clifford = "plaquette.device._errortrackingbackend:ErrorTrackingBackend"
stim = "plaquette.device._stimsim:StimSimulator"
tableau = "plaquette.device._circuitsim:CircuitSimulator"
[tool.ruff.isort]
known-first-party = ["plaquette", "plaquette_graph", "plaquette_unionfind"]
order-by-type = true
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.per-file-ignores]
"src/plaquette/decoders/__init__.py" = ["F401"]
"tests/*" = ["D"]
"lattice.py" = ["D", "E"]
[tool.setuptools]
zip-safe = false
[tool.setuptools.dynamic]
version = {attr = "plaquette.__version__"}
readme = {file = ["README.rst"]}
dependencies = {file = ["requirements.txt"]}
[tool.pytest.ini_options]
addopts = '--doctest-modules --doctest-glob="*.rst" --strict-markers --ignore=examples --ignore="src/plaquette/frontend" --ignore="src/plaquette/visualizer" --ignore-glob="docs/**/*.py"'
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]