forked from iqm-finland/qiskit-on-iqm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
160 lines (131 loc) · 3.33 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
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
[build-system]
requires = ["setuptools>=65.4.1", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[project]
name = "qiskit-iqm"
dynamic = ["version"]
description = "Qiskit adapter for IQM's quantum architectures"
authors = [{name = "IQM Finland Oy", email = "developers@meetiqm.com"}]
readme = "README.rst"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Physics",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License"
]
requires-python = ">=3.9, <3.12"
dependencies = [
"numpy",
"qiskit >= 0.45, < 1.2",
"qiskit-aer >= 0.13.1, < 0.15",
"iqm-client >= 18.0, < 19.0"
]
[project.urls]
homepage = "https://github.com/iqm-finland/qiskit-on-iqm"
documentation = "https://iqm-finland.github.io/qiskit-on-iqm"
repository = "https://github.com/iqm-finland/qiskit-on-iqm.git"
changelog = "https://github.com/iqm-finland/qiskit-on-iqm/blob/main/CHANGELOG.rst"
[project.optional-dependencies]
# Add here additional requirements for extra features, to install with:
# `pip install qiskit-iqm[dev,docs,testing]
dev = [
"tox == 4.11.4"
]
docs = [
"sphinx == 7.2.6",
"sphinx-book-theme == 1.1.2",
]
testing = [
"black == 23.12.0",
"isort == 5.13.2",
"pylint == 3.0.3",
"mypy == 1.7.1",
"mockito == 1.4.0",
"pytest == 7.4.3",
"pytest-cov == 4.1.0",
"pytest-pylint == 0.21.0",
"types-Jinja2 == 2.11.9"
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_scheme = "no-guess-dev"
[tool.pytest.ini_options]
norecursedirs = [
".github",
".mypy_cache",
".tox",
"build",
"docs",
"venv"
]
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning:xarray",
"ignore::DeprecationWarning:distutils",
"ignore::FutureWarning:numpy"
]
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ["py311"]
[tool.coverage.run]
branch = true
source = ["qiskit_iqm"]
[tool.coverage.paths]
source = [
"src/",
"*/site-packages/",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
'if self\.debug',
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
[tool.isort]
# make isort and black compatible
profile = "black"
line_length = 120
balanced_wrapping = true
force_sort_within_sections = true
reverse_relative = true
group_by_package = true
known_first_party = ["iqm"]
[tool.mypy]
namespace_packages = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = [
"mockito",
"qiskit.*",
"qiskit_aer.*",
"requests"
]
ignore_missing_imports = true
[tool.pylint.main]
disable = [
"fixme",
"invalid-name",
"protected-access",
"too-few-public-methods",
"too-many-locals"
]
extension-pkg-whitelist = ["pydantic"]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.similarities]
ignore-imports = true
[tool.pylint.string]
check-quote-consistency = true