forked from wrigjl/quantumsolver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (49 loc) · 1.35 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (49 loc) · 1.35 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
[project]
name = "quantumsolver"
version = "0.1.0"
description = "Qiskit-based quantum solvers for Redux, served as a Flask app."
readme = "README.md"
requires-python = ">=3.12"
license = { file = "LICENSE" }
dependencies = [
"Flask==3.1.3",
"requests==2.34.2",
"qiskit==2.4.1",
"qiskit-aer==0.17.2",
"gunicorn==24.1.1",
]
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"ruff",
"pip-audit",
"black",
]
[build-system]
requires = ["uv_build>=0.10,<0.11"]
build-backend = "uv_build"
[tool.black]
target-version = ["py312", "py313"]
[tool.ruff]
line-length = 88
# minimum supported version — keeps pyupgrade from emitting 3.13-only syntax
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "W", "B", "UP"]
# black owns line length; don't double-enforce it (it won't wrap comments/strings)
ignore = ["E501"]
[tool.pytest.ini_options]
# `rbs unit-test` runs a bare `pytest`, which would otherwise collect from the repo root and
# sweep up integration/ — a suite that needs a running container. Keep the default run to tests/;
# `rbs integration-test` names integration/ explicitly, which overrides this.
testpaths = ["tests"]
[tool.coverage.run]
source = ["quantumsolver"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"def main\\(",
"def tryit\\(",
]