forked from iqm-finland/iqm-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
144 lines (120 loc) · 3.29 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
[build-system]
requires = ["setuptools>=65.4.1", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"
[project]
name = "iqm-client"
dynamic = ["version"]
description = "Client library for accessing an IQM quantum computer"
authors = [{name="IQM Finland Oy", email="[email protected]"}]
readme = "README.rst"
license = {file="LICENSE.txt"}
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",
"requests >= 2.28.2, < 3.0",
"pydantic >= 2.4.2, < 3.0",
]
[project.urls]
Homepage = "https://github.com/iqm-finland/iqm-client"
Documentation = "https://iqm-finland.github.io/iqm-client"
[project.optional-dependencies]
# Add here additional requirements for extra features, to install with:
# `pip install iqm-client[dev]`
dev = [
"tox == 4.11.3",
]
testing = [
"black == 23.11.0",
"isort == 5.12.0",
"pylint == 3.0.2",
"mypy == 1.7.1",
"mockito == 1.4.0",
"pytest == 7.4.3",
"pytest-cov == 4.1.0",
"pytest-isort == 3.1.0",
"pytest-pylint == 0.21.0",
"pylint-pydantic == 0.3.0",
"types-requests == 2.28.9",
"jsons == 1.6.1",
"freezegun == 1.5.1",
]
docs = [
"sphinx == 7.2.6",
"sphinx-book-theme == 1.1.2",
]
[tool.setuptools_scm]
# See configuration details in https://github.com/pypa/setuptools_scm
version_scheme = "no-guess-dev"
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ["py311"]
extend-exclude = "_pb2.py$"
[tool.coverage.run]
branch = true
source = ["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]
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
mypy_path = "src"
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["requests"]
ignore_missing_imports = true
[tool.pylint.main]
disable = [
"protected-access",
"too-few-public-methods",
"too-many-arguments",
"invalid-name",
"abstract-method",
"fixme",
]
load-plugins = ["pylint_pydantic"]
extension-pkg-whitelist = ["pydantic"]
[tool.pylint.format]
# Maximum number of characters on a single line.
max-line-length = 120
[tool.pylint.similarities]
ignore-imports = true
[tool.pylint.string]
# This flag controls whether inconsistent-quotes generates a warning when the
# character used as a quote delimiter is used inconsistently within a module.
check-quote-consistency = true