-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
185 lines (164 loc) · 4.13 KB
/
Copy pathpyproject.toml
File metadata and controls
185 lines (164 loc) · 4.13 KB
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
177
178
179
180
181
182
183
184
185
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = false
include-package-data = true
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
[project]
name = "rydiqule"
description = "Rydberg Sensor Interactive Quantum Physics Module"
authors = [{name = "ARL and NAWCWD"}]
keywords = [
"rydberg",
"atomic-physics",
"quantum-optics",
"atomic-sensors",
"electrometry",
]
license = "Apache-2.0"
license-files = ["LICEN[CS]E*"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3 :: Only",
]
requires-python = ">= 3.8"
dependencies = [
"arc-alkali-rydberg-calculator>=3.5.0",
"numpy",
"scipy>=0.19.1, <1.17",
"leveldiagram>=0.3.1",
"networkx",
"psutil",
"typing-extensions",
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.optional-dependencies]
backends = [
"numba",
"cyrk>=0.12.1",
]
[dependency-groups]
docs = [
"Sphinx==8.2.3",
"furo==2024.8.6",
"myst-nb==1.2.0",
"myst-parser==4.0.1",
"sphinx-copybutton",
"sphinxext-opengraph",
"sphinx-inline-tabs",
]
tests = [
"pytest",
"coverage",
"pytest-cov",
]
profiling = [
"line_profiler==3.5.1", # pin to version that supports cython line profiling
]
mypy = [
"mypy",
"numpy>=1.21",
"lxml",
"types-networkx",
"types-psutil",
]
linter = ["ruff"]
dev = [
"setuptools-scm",
"ipykernel",
{include-group = "tests"},
]
[tool.uv.dependency-groups.docs]
requires-python = ">=3.11"
[tool.uv.dependency-groups.profiling]
requires-python = "<3.11"
[tool.ruff]
line-length = 100
src = ["src"]
[tool.ruff.lint]
# global additions
extend-select = ["RUF100"]
# global ignores
ignore = ["E231", "E741"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E501", "F401"]
"src/rydiqule/solvers.py" = ["F403", "F405"]
"src/rydiqule/timesolvers.py" = ["F403", "F405"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules"
markers = [
"slow: Marks a test as taking a long time to run, and so can be skipped with `pytest -m \"not slow\"`.",
"high_memory: Marks a test as needing a lot of RAM",
"steady_state: Marks a test as using the steady-state solver.",
"time: Marks a test as using the time solver.",
"doppler: Marks a test as incorporating Doppler averaging.",
"experiments: Marks test of experiments.py",
"util: Marks a test of the ancillary utilities.",
"structure: Marks a test of the definition of the atomic system.",
"exception: Marks a test of error handling.",
"backend: Marks a test that uses an optional backend",
"dev: Used to temporarily mark a test as being developed so it can be run independently of the rest of the suite.",
]
doctest_optionflags = [
"NUMBER",
"ELLIPSIS",
"IGNORE_EXCEPTION_DETAIL",
"NORMALIZE_WHITESPACE",
]
testpaths = [
"tests",
"src/rydiqule",
]
[tool.mypy]
# global options
warn_return_any = false
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
show_error_codes = true
allow_redefinition = true
files = ["src/**/*.py"]
plugins = ["numpy.typing.mypy_plugin"]
# import ignores
[[tool.mypy.overrides]]
module = [
"matplotlib.*",
"arc.*",
"scipy.*",
"numba.*",
"CyRK.*",
"leveldiagram.*",
"IPython.*",
"setuptools_scm.*"
]
ignore_missing_imports = true
[tool.pyright]
include = ["src"]
typeCheckingMode = "standard"
stubPath = "./typings"
reportMissingImports = "error"
reportMissingTypeStubs = false
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnnecessaryCast = "warning"
reportUnnecessaryIsInstance = "information"
reportUnnecessaryComparison = "information"
reportUnnecessaryContains = "information"
reportUnusedExpression = "warning"
reportIncompatibleMethodOverride = "information"
reportIncompatibleVariableOverride = "information"
pythonVersion = "3.11"
executionEnvironments = [
{ root = "src"},
]