-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
163 lines (135 loc) · 3.42 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
161
162
163
[build-system]
requires = ["setuptools>=65.4.1", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[project]
name = "cirq-iqm"
dynamic = ["version"]
description = "Google Cirq adapter for IQM's quantum architectures"
authors = [{name = "IQM Finland Oy", email = "[email protected]"}]
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",
"cirq-core[contrib] ~= 1.2",
"ply", # Required by cirq.contrib.qasm_import
"iqm-client >= 20.0, < 21.0"
]
[project.urls]
homepage = "https://github.com/iqm-finland/cirq-on-iqm"
documentation = "https://iqm-finland.github.io/cirq-on-iqm"
repository = "https://github.com/iqm-finland/cirq-on-iqm.git"
changelog = "https://github.com/iqm-finland/cirq-on-iqm/blob/main/CHANGELOG.rst"
[project.optional-dependencies]
# Add here additional requirements for extra features, to install with:
# `pip install cirq-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",
"jsons == 1.4.2",
"mockito == 1.4.0",
"mypy == 1.7.1",
"pytest == 7.4.3",
"pytest-cov == 4.1.0",
"pytest-mockito == 0.0.4",
"pytest-pylint == 0.21.0"
]
[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 = ["cirq_iqm"]
parallel = true
[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 = [
"cirq",
"iqm_client",
"mockito",
"requests"
]
ignore_missing_imports = true
[tool.pylint.main]
load-plugins = "pylint.extensions.no_self_use"
disable = [
"abstract-method",
"duplicate-code",
"fixme",
"invalid-name",
"protected-access",
"too-few-public-methods",
"too-many-locals"
]
extension-pkg-whitelist = ["pydantic"]
[tool.pylint.design]
max-args = 8
[tool.pylint.format]
max-line-length = 120
[tool.pylint.similarities]
ignore-imports = true
[tool.pylint.string]
check-quote-consistency = true