-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathpyproject.toml
128 lines (111 loc) · 2.99 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
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
[tool.poetry]
name = "quantuminspire"
version = "3.2.0"
description = "SDK for the Quantum Inspire platform."
authors = ["Quantum Inspire <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://www.quantum-inspire.com"
repository = "https://github.com/qutech-delft/quantuminspire"
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: Apache Software License'
]
[tool.poetry.scripts]
qi = "quantuminspire.cli.command_list:app"
[tool.poetry.dependencies]
python = "^3.9"
typer = {extras = ["all"], version = "^0.15.1"}
pydantic = "^2.10.6"
qi-compute-api-client = "^0.47.0"
qxelarator = {version = "^0.7.4", optional = true}
pydantic-settings = "^2.7.1"
qiskit = "1.0.2"
oauthlib = "^3.2.2"
requests = "^2.32.3"
opensquirrel = "^0.1.0"
pyjwt = "^2.10.1"
[tool.poetry.extras]
local = ["qxelarator"]
[tool.poetry.group.dev.dependencies]
pytest = {extras = ["toml"], version = "^8.3.4"}
pytest-cov = "^6.0.0"
coverage = {extras = ["toml"], version = "^7.6.10"}
mypy = "^1.14"
docformatter = "1.7.5"
pytest-mock = "^3.14.0"
black = "^25.1.0"
pytest-asyncio = "^0.25.3"
ruff = "^0.9.4"
types-requests = "^2.32.0"
types-oauthlib = "^3.2.0.20240806"
responses = "^0.25.6"
freezegun = "^1.5.1"
[tool.pytest.ini_options]
addopts = "-v --cov --cov-report term-missing:skip-covered --cov-report xml"
asyncio_mode = "auto"
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
branch = true
source = ["quantuminspire"]
omit = ["tests/*", "**/.tox/**", "scratch"]
[tool.coverage.report]
show_missing = true
fail_under = 100
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:"
]
[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311", "py312"]
[tool.mypy]
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
ignore_missing_imports = true
show_error_codes = true
plugins = [
"pydantic.mypy"
]
exclude = [
"examples/",
"tests/sdk/qiskit/",
"scratch"
]
[tool.ruff]
lint.select = ["E", "F", "I"]
line-length = 120
target-version = "py311"
lint.isort.combine-as-imports = true
[tool.pylint]
MASTER.extension-pkg-whitelist = "pydantic"
FORMAT.max-line-length = 120
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.docformatter]
recursive = true
wrap-summaries = 119
wrap-descriptions = 119
[tool.pydantic-mypy]
warn_untyped_fields = true