-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (171 loc) · 4.23 KB
/
pyproject.toml
File metadata and controls
189 lines (171 loc) · 4.23 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "graphqomb"
version = "0.3.1"
description = "A modular Graph State qompiler for measurement-based quantum computing."
readme = "README.md"
requires-python = ">=3.10, <3.15"
license = {text = "MIT"}
authors = [
{name = "Masato Fukushima", email = "masa1063fuk@gmail.com"},
{name = "Sora Shiratani"},
{name = "Yuki Watanabe"},
{name = "Daichi Sasaki"},
]
maintainers = [
{name = "Masato Fukushima", email = "masa1063fuk@gmail.com"},
]
keywords = [
"quantum computing",
"MBQC",
"measurement-based quantum computing",
"quantum compilation",
"fault-tolerant quantum computing",
"graph state",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Quantum Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"matplotlib",
"networkx",
"numpy>=1.22,<3",
"ortools>=9,<10",
"typing-extensions",
]
[project.optional-dependencies]
dev = [
"mypy==2.1.0",
"pre-commit==4.6.0",
"pyright==1.1.409",
"pytest==9.0.3",
"pytest-cov==7.1.0",
"ruff==0.15.15",
"types-networkx==3.6.1.20260518",
]
doc = [
"furo>=2025.12.19",
"matplotlib>=3.7.0",
"sphinx>=8.1.3",
"sphinx-gallery>=0.17.0",
]
pyzx = [
"pyzx>=0.10",
]
[project.urls]
Homepage = "https://github.com/TeamGraphix/graphqomb"
Documentation = "https://graphqomb.readthedocs.io/"
Repository = "https://github.com/TeamGraphix/graphqomb"
Changelog = "https://github.com/TeamGraphix/graphqomb/blob/master/CHANGELOG.md"
"Bug Tracker" = "https://github.com/TeamGraphix/graphqomb/issues"
[tool.setuptools.package-data]
graphqomb = ["py.typed"]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
# Conflicts with ruff format
"COM812",
"COM819",
"D206",
"D300",
"E111",
"E114",
"E117",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
# Not necessary for this project
"AIR",
"ASYNC",
"DJ",
"PD",
# Manually disabled
"CPY", # copyright missing
"D105", # undocumented magic method
"ERA", # commented-out code
"FBT", # boolean-trap
"FIX", # fixme
"PLR0904", # too-many-public-methods
]
[tool.ruff.lint.pylint]
allow-dunder-method-names = [
"__array__",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"S101", # `assert` detected
"SLF001", # private method
"PLC2701", # private method
"PLR2004", # magic value in test
"PLR6301", # method could be static
"D100",
"D103",
"D104",
"D400",
"D417", # return not documented (numpy style)
"DOC201", # return not documented (pydoclint)
]
"examples/*.py" = [
"T201", # print
"D",
]
[tool.pytest.ini_options]
pythonpath = ["graphqomb"]
testpaths = ["tests"]
filterwarnings = "ignore::DeprecationWarning"
markers = [
"slow: mark test as slow",
"pyzx: tests requiring the optional PyZX dependency",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
exclude_also = [
"if TYPE_CHECKING:",
'raise NotImplementedError\(.*\)',
"return NotImplemented",
'typing_extensions.assert_never\(.*\)',
"@abc.abstractmethod",
]
fail_under = 50
[tool.coverage.xml]
output = "coverage.xml"
[tool.coverage.html]
directory = "htmlcov"
[tool.mypy]
strict = true
ignore_missing_imports = true
files = ["graphqomb", "tests", "examples"]
[tool.pyright]
include = ["graphqomb", "tests", "examples"]
reportUnknownArgumentType = "information"
reportUnknownLambdaType = "information"
reportUnknownMemberType = "information"
reportUnknownParameterType = "information"
reportUnknownVariableType = "information"