-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
170 lines (145 loc) · 4.24 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
######## Building
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "qoptcraft"
authors = [
{name = "Pablo V. Parellada", email = "pablo.veganzones@uva.es"},
{name = "Daniel Gómez Aguado", email = "gomezaguado99@gmail.com"}
]
maintainers = [
{name = "Pablo V. Parellada", email = "pablo.veganzones@uva.es"},
{name = "Daniel Gómez Aguado", email = "gomezaguado99@gmail.com"}
]
description = """A package for the design and study of linear optical quantum systems.
QOprCraft navigates through the subalgebras of mainly unitary matrices.
Via decomposing files into beam splitters and shifters, theoretically desired matrices can be implemented (Selements()), as well as their quantum evolution (read: influence) given a number of photons (StoU()).
The reverse operation: giving a desired evolution for finding the original matrix, is also true (SfromU()).
For unavailable implementations, the option to obtain its closest, possible evolution matrix is also given via Toponogov().
Systems with loss are treated by the fifth function QuasiU().
A matrix generator, a test of some algorithms and every logarithm developed are also included as individual functions.
"""
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
dependencies = [
"numpy",
"scipy",
"numba",
"sympy",
]
dynamic = ["version"]
[project.urls]
repository = "https://gitlab.tel.uva.es/juagar/qoptcraft"
[tool.setuptools]
platforms = ["unix", "linux", "osx", "cygwin", "win32"]
[tool.setuptools.packages.find]
include = ["qoptcraft*"]
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools.dynamic]
version = {attr = "qoptcraft._version.__version__"}
[project.optional-dependencies]
dev = ["qoptcraft[test,lint,build,docs]"]
test = [
"pytest",
"pyinstrument",
"hypothesis"
]
lint = [
"ruff",
"black",
"black[jupyter]",
"mypy",
"vulture"
]
build = [
"setuptools",
"build",
"twine"
]
docs = [
"mkdocs",
"mkdocstrings",
"mkdocstrings[python]",
"mkdocs-material",
"Pygments",
"python-markdown-math",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-section-index",
"mkdocs-same-dir",
"mkdocs-autorefs",
"mkdocs-jupyter",
]
######## Tools
[tool.pytest.ini_options]
minversion = "7.3"
testpaths = "tests"
[tool.ruff]
line-length = 100
select = ["F", "E"]
extend-select = ["W", "I002", "B", "UP", "PLE", "PLW", "NPY", "RUF", "PD", "SIM", "PT"]
unfixable = ["NPY002"]
ignore = ["RUF005"]
fixable = ["E", "F", "W", "I", "B", "UP", "PLE", "PLW", "NPY", "RUF", "PD", "SIM", "PT"]
extend-exclude = ["tests", "test"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.isort]
force-single-line = false
force-sort-within-sections = false
lines-after-imports = 2
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.pycodestyle]
ignore-overlong-task-comments = true
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.flake8-annotations]
allow-star-arg-any = false
ignore-fully-untyped = false
[tool.black]
line-length = 100
skip-string-normalization = false
skip-magic-trailing-comma = false
exclude = '''
(
asv_bench/env
| \.egg
| \.git
| \.mypy_cache
| \.tox
| \.venv
| build
| setup.py
)
'''
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
follow_imports = "silent"
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_subclassing_any = true
strict_optional = true
no_implicit_optional = true
warn_no_return = true
warn_unreachable = true
allow_untyped_globals = false
allow_redefinition = false
local_partial_types = false
implicit_reexport = true
strict_equality = true