forked from cda-tum/mqt-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
176 lines (159 loc) · 4.56 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
164
165
166
167
168
169
170
171
172
173
174
175
176
[build-system]
requires = [
"setuptools>=61",
"setuptools_scm>=7",
]
build-backend = "setuptools.build_meta"
[project]
name = "mqt.bench"
description = "MQT Bench - A MQT tool for Benchmarking Quantum Software Tools"
readme = "README.md"
authors = [
{ name = "Nils Quetschlich", email = "[email protected]" },
{ name = "Lukas Burgholzer", email = "[email protected]"},
]
keywords = ["MQT", "quantum computing", "benchmarking", "performance", "testing"]
license = { file = "LICENSE" }
requires-python = ">=3.9"
dynamic = ["version"]
dependencies = [
"pytket-qiskit>=0.40.0,<0.46.0", # manages the dependencies for qiskit and tket in a combined fashion
"qiskit_optimization",
"qiskit_nature",
"qiskit_finance",
"pandas>=1.0.0",
"flask>=2.0.0",
"networkx>=2.0.0",
"pyscf>=2.3.0",
"packaging>=21.0",
"tqdm>=4.0.0",
"joblib>=1.3.0",
"importlib_metadata>=3.6; python_version < '3.10'",
"importlib_resources>=5.9; python_version < '3.10'",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
]
[project.optional-dependencies]
test = ["pytest>=7.2"]
coverage = ["mqt.bench[test]", "pytest-cov[toml]"]
docs = [
"furo>=2023.08.17",
"sphinx~=7.0",
"myst_parser>=0.13",
"setuptools-scm>=7",
"sphinx-copybutton",
"sphinx_design",
"sphinxext-opengraph",
]
dev = ["mqt.bench[coverage, docs]"]
[project.scripts]
"mqt.bench" = "mqt.benchviewer.main:start_server"
"create_mqt_bench_zip" = "mqt.bench.utils:create_zip_file"
"generate_mqt_bench" = "mqt.bench.benchmark_generator:generate"
[project.urls]
Homepage = "https://github.com/cda-tum/mqtbench"
"Bug Tracker" = "https://github.com/cda-tum/mqtbench/issues"
Discussions = "https://github.com/cda-tum/mqtbench/discussions"
Research = "https://www.cda.cit.tum.de/research/quantum/"
[tool.setuptools_scm]
[tool.pytest.ini_options]
minversion = "7.2"
testpaths = ["tests"]
addopts = ["-ra", "--strict-markers", "--strict-config", "--showlocals"]
log_cli_level = "INFO"
xfail_strict = true
[tool.coverage.run]
source = ["mqt.bench", "mqt.benchviewer"]
[tool.coverage.report]
exclude_also = [
'\.\.\.',
'if TYPE_CHECKING:',
]
show_missing = true
skip_empty = true
precision = 1
[tool.black]
line-length = 120
[tool.mypy]
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
files = ["src", "tests", "setup.py"]
python_version = "3.9"
strict = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
explicit_package_bases = true
pretty = true
[[tool.mypy.overrides]]
module = ["pytket.*"]
implicit_reexport = true
[[tool.mypy.overrides]]
module = ["qiskit.*", "qiskit_finance.*", "joblib.*", "networkx.*", "pandas.*"]
ignore_missing_imports = true
[tool.ruff]
select = [
"E", "F", "W", # flake8
"A", # flake8-builtins
"B", "B904", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"EXE", # flake8-executable
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"PLR2004", # Magic values
"PLR0913", # Too many arguments
"E501", # Line too long (Black is enough)
]
# Exclude a variety of commonly ignored directories.
exclude = [
"__init__.py",
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 120