-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
174 lines (152 loc) · 3.99 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "qadence2-expressions"
description = "Qadence 2 expressions consisting of symbolic expressions and blocks, i.e. quantum digital, analog, digital-analog and composite gates, together with their logic and engine."
readme = "README.md"
version = "0.2.0"
requires-python = ">=3.10"
license = { text = "Apache 2.0" }
keywords = ["quantum"]
authors = [
{ name = "Kaonan Micadei", email = "[email protected]" },
{ name = "Eduardo Maschio", email = "[email protected]" },
{ name = "Roland Guichard", email = "[email protected]" },
{ name = "Pim Venderbosch", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
# always specify a version for each package
# to maintain consistency
dependencies = [
"qadence2-ir"
]
[tool.hatch.metadata]
allow-direct-references = true
allow-ambiguous-features = true
# add one or more extras in the dependencies
[project.optional-dependencies]
extras = [
]
[project.urls]
Documentation = "https://pqs.pages.pasqal.com/qadence2-expressions/"
Issues = "https://github.com/pasqal-io/qadence2-expressions/-/issues"
Source = "https://github.com/pasqal-io/qadence2-expressions"
[tool.hatch.envs.default]
features = ["extras"]
dependencies = [
"hypothesis",
"pytest",
"pytest-cov",
"pytest-mypy",
"pytest-xdist",
"ipykernel",
"pre-commit",
"black",
"isort",
"ruff",
"pydocstringformatter",
"numpy",
"torch",
]
[tool.hatch.envs.default.scripts]
test = "pytest -n auto {args}"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = """-vvv"""
xfail_strict = true
filterwarnings = [
"ignore:Call to deprecated create function FieldDescriptor",
"ignore:Call to deprecated create function Descriptor",
"ignore:Call to deprecated create function EnumDescriptor",
"ignore:Call to deprecated create function EnumValueDescriptor",
"ignore:Call to deprecated create function FileDescriptor",
"ignore:Call to deprecated create function OneofDescriptor",
"ignore:distutils Version classes are deprecated.",
"ignore::DeprecationWarning",
]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs",
"mkdocs-material",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-section-index",
"mkdocs-exclude",
"markdown-exec",
"mike",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean --strict {args}"
serve = "mkdocs serve --dev-addr localhost:8000"
test = "mkdocs build --clean --strict"
[[tool.hatch.envs.test.matrix]]
python = ["310", "311"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.gitignore",
"/.pre-commit-config.yml",
"/tests",
"/docs",
"/examples",
]
[tool.hatch.build.targets.wheel]
packages = ["qadence2_expressions"]
[tool.coverage.run]
branch = true
parallel = true
# uncomment to omit any file from the
# coverage. Regexps can be used
# to select all files from a folder
#omit = [
# "template_python/to_omit.py",
#]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff]
lint.select = ["E", "F", "I", "Q"]
lint.extend-ignore = ["F841"]
line-length = 100
lint.exclude = ["*.ipynb"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.black]
line-length = 100
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
no_implicit_optional = false
ignore_missing_imports = true