-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathpyproject.toml
More file actions
215 lines (189 loc) Β· 6.47 KB
/
pyproject.toml
File metadata and controls
215 lines (189 loc) Β· 6.47 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[tool.poetry]
name = "qctrl-open-controls"
version = "12.0.2"
description = "Q-CTRL Open Controls"
license = "Apache-2.0"
authors = ["Q-CTRL <support@q-ctrl.com>"]
maintainers = ["Q-CTRL <support@q-ctrl.com>"]
readme = "README.md"
homepage = "https://q-ctrl.com"
repository = "https://github.com/qctrl/open-controls"
documentation = "https://docs.q-ctrl.com/open-controls/references/qctrl-open-controls/"
keywords = [
"black opal",
"boulder opal",
"fire opal",
"nisq",
"open controls",
"q control",
"q ctrl",
"q-control",
"q-ctrl",
"qcontrol",
"qctrl",
"quantum",
"quantum algorithms",
"quantum circuits",
"quantum coding",
"quantum coding software",
"quantum computing",
"quantum control",
"quantum control software",
"quantum control theory",
"quantum engineering",
"quantum error correction",
"quantum firmware",
"quantum fundamentals",
"quantum sensing",
"qubit",
"qudit"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Embedded Systems",
"Topic :: System :: Distributed Computing"
]
packages = [
{ include = "qctrlopencontrols" },
]
[tool.poetry.dependencies]
python = ">=3.10,<3.14"
numpy = ">=1.25.2"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
pre-commit = "^3.6.0"
pytest = ">=8,<10"
ruff = "^0.6.0"
sphinx = "^5.0.0"
tomli = "^2.0.1"
sphinx-markdown-builder = "^0.6.7"
[tool.poetry.urls]
LinkedIn = "https://www.linkedin.com/company/q-ctrl/"
Facebook = "https://www.facebook.com/qctrl"
X = "https://x.com/qctrlHQ"
YouTube = "https://www.youtube.com/qctrl"
GitHub = "https://github.com/qctrl"
[tool.ruff.format]
exclude = [
".git",
".github",
".pytest_cache",
"**/migrations/**",
"setup.py",
"manage.py"
]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Rules to add back later
"EM", # Exception must not use a string literal (improves error message clarity)
# Unicode characters (intentional for display)
"RUF001", # String contains ambiguous Unicode character
"RUF002", # Docstring contains ambiguous Unicode character
# Code complexity (common for scientific/mathematical code)
"C901", # Function is too complex
# Magic numbers (common in scientific/mathematical contexts)
"PLR2004", # Magic value used in comparison
# Commented code (keep for reference in scientific contexts)
"ERA001", # Found commented-out code
# Missing type annotations (legacy codebase)
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function
# Performance/style (not critical)
"PERF401", # Use list comprehension instead of loop + append
"RET504", # Unnecessary assignment before return statement
"FLY002", # Consider string literal instead of join
# Documentation/examples (not critical for core functionality)
"T201", # print found (acceptable in examples and notebooks)
"INP001", # File is part of implicit namespace package (acceptable for docs)
# Time zone issues (not critical)
"DTZ005", # datetime.now() called without tz argument
# Future annotations (not critical)
"FA100", # Add from __future__ import annotations
# Unicode in comments (acceptable)
"RUF003", # Comment contains ambiguous Unicode character
# Against q-ctrl convention
"DJ008", # Model does not define `__str__` method
"FIX", # Line contains TODO
"TD002", # Missing author in TODO
# Overly prescriptive
"ANN204", # Missing return type annotation for magic method
"ANN401", # Use of Any type
"CPY", # Missing copyright notice at top of file
"D105", # Missing docstring in magic method
"D205", # 1 blank line required between summary line and description
"D400", # First line should end with a period
"D401", # First line of docstring should be in imperative mood
"FA102", # Require from __future__ import annotations for compatibility with python < 3.9
"FBT", # Boolean-typed positional arguments
"SIM108", # Use ternary operator instead of `if`-`else`-block
"TRY003", # Avoid specifying long messages outside the exception class
# Previously excluded from pylint
"D100", # missing-module-docstring
"FIX001", # fixme
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0914", # too-many-locals
"PLR0915", # too-many-statements
# conflict with other rules
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
# conflict with formatter
"COM812", # Trailing comma missing
"E501", # Line too long ({width} > {limit})
"ISC001", # Implicitly concatenated string literals on one line
# clashes with pydantic
"RUF012", # Mutable class attributes should be annotated with typing.ClassVar
]
exclude = [
"**/migrations/**",
"celeryconfig.py",
"gunicorn.conf.py",
"manage.py",
"setup.py",
"venv",
]
extend-select = [
"D213", # Multi-line docstring summary should start at the second line
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401", "F403"] # ignore unused and * imports in __init__
"**/commands/**" = [
"T20", # print statements
"S101", # assert statements
]
"scripts/**" = [
"INP001", # missing __init__.py
"T20", # print statements
]
"{_,test_,[0123456789],Mock,Test,conftest,*pytest_plugin}*" = [ # ignore rules in test files
"ARG001", # unused arg
"ANN", # missing type annotation
"D", # docstrings
"PLR2004", # magic values
"S", # security
"SLF001", # private member access
]
"*pytest_plugin*" = ["ARG001"] # unused arg
"examples/**/*.ipynb" = ["PTH123"] # Path operations acceptable in notebook examples
[tool.ruff.lint.flake8-unused-arguments]
ignore-variadic-names = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"