-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
147 lines (132 loc) · 3.28 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "qiskit-addon-cutting"
version = "0.9.0"
description = "Reduce width and depth of quantum circuits by cutting gates and wires."
readme = "README.md"
license = {file = "LICENSE.txt"}
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.23.0",
"scipy>=1.5.2",
"rustworkx>=0.14.0",
"qiskit-aer>=0.14.0.1",
"qiskit>=1.1.0, !=1.3.0, <2.0",
"qiskit-ibm-runtime>=0.24.0",
]
[project.optional-dependencies]
dev = [
"qiskit-addon-cutting[test,nbtest,lint]",
]
basetest = [
"pytest>=6.2.5",
"pytest-randomly>=1.2.0",
]
test = [
"qiskit-addon-cutting[basetest]",
"ddt>=1.4.4",
]
nbtest = [
"qiskit-addon-cutting[basetest]",
"nbmake>=1.4.3"
]
style = [
"autoflake==2.3.1",
"black[jupyter]~=24.1",
"ruff==0.7.2",
"nbqa>=1.6.0",
]
lint = [
"qiskit-addon-cutting[style]",
"mypy==1.13.0",
"reno>=3.4.0",
"pylint==3.3.1",
]
docs = [
"Sphinx>=3.0.0",
"sphinx-autodoc-typehints>=1.12.0",
"sphinx-reredirects",
"jupyter-sphinx>=0.3.2",
"nbsphinx>=0.8.8",
"sphinx-copybutton>=0.5.0",
"reno>=3.4.0",
"qiskit-sphinx-theme>=2.0.0, <3"
]
notebook-dependencies = [
"matplotlib",
"ipywidgets",
"pylatexenc",
]
[project.urls]
"Documentation" = "https://qiskit.github.io/qiskit-addon-cutting/"
"Repository" = "https://github.com/Qiskit/qiskit-addon-cutting"
[tool.hatch.build.targets.wheel]
only-include = [
"qiskit_addon_cutting",
]
[tool.autoflake]
remove-unused-variables = true
remove-all-unused-imports = true
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
extend-select = ["D"]
ignore = [
"E501", # line too long
]
[tool.ruff.lint.per-file-ignores]
"test/**.py" = [
"F405", # star import
"F403", # unable to detect undefined names due to star import
"D", # pydocstyle
]
"docs/**" = [
"E402", # module level import not at top of file
"D100", # missing docstring in public module
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pylint.main]
py-version = "3.8"
disable = "all"
enable = [
"reimported",
"no-self-use",
"no-else-raise",
"redefined-argument-from-local",
"redefined-builtin",
"raise-missing-from",
"cyclic-import",
"unused-argument",
"use-list-literal",
"use-dict-literal",
"dangerous-default-value",
]
[tool.mypy]
ignore_missing_imports = true
#[tool.coverage.run]
#omit = [
# # deprecated import location(s)
# "qiskit_addon_cutting/path/to/deprecated/module",
#]
[tool.pytest.ini_options]
testpaths = ["./qiskit_addon_cutting/", "./test/"]
addopts = "--doctest-modules -rs --durations=10"