Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
210 lines (194 loc) · 5.75 KB
/
Copy pathpyproject.toml
File metadata and controls
210 lines (194 loc) · 5.75 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = [
"src/axtreme",
"tests",
".coveragerc",
".editorconfig",
".pre-commit-config.yaml",
"manage.py",
"pyproject.toml",
"pytest.ini",
"ruff.toml",
"uv.lock",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/axtreme",
]
[project]
name = "axtreme"
version = "0.1.1"
description = "A development library for the RaPiD project"
readme = "README.md"
requires-python = ">= 3.11, < 3.12" # See issue #138 concerning python 3.12
license = { file = "LICENSE" }
authors = [
{ name = "Sebastian Winter", email = "sebastian.winter@dnv.com" },
{ name = "Kristoffer Skare", email = "kristoffer.skare@dnv.com" },
{ name = "Magnus Kristiansen", email = "magnus.kristiansen@dnv.com" },
]
maintainers = [
{ name = "Claas Rostock", email = "claas.rostock@dnv.com" },
{ name = "Jorge Luis Mendez", email = "jorge.luis.mendez@dnv.com" },
]
keywords = [
"Design of Experiments",
"Active Learning",
"Extreme Response",
]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
# "Operating System :: MacOS",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"numpy>=1.26, <2.0",
"matplotlib>=3.10",
"statsmodels>=0.14.4",
"filterpy>=1.4.5",
"numba>=0.60.0",
"dataclasses-json>=0.6.7",
"gitpython>=3.1.43",
"ax-platform[mysql]==0.3.7",
"plotly>=6.3.1",
"pandas>=2.2,<3.0", # See issue #139
]
[project.optional-dependencies]
cuda = [
"torch==2.4.1",
]
examples = [
"openturns>=1.26",
"numba==0.61.2"
]
[project.urls]
Homepage = "https://github.com/dnv-opensource/axtreme"
Documentation = "https://dnv-opensource.github.io/axtreme/README.html"
Repository = "https://github.com/dnv-opensource/axtreme.git"
Issues = "https://github.com/dnv-opensource/axtreme/issues"
Changelog = "https://github.com/dnv-opensource/axtreme/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"pytest>=8.3",
"pytest-cov>=6.0",
"ruff>=0.11.2",
"pyright>=1.1.398",
"mypy>=1.15",
# TODO(ak25-12-08): Version 1.41 of sourcery has issues with wheels for windows and ubuntu
"sourcery>=1.31,<=1.39.0",
"pre-commit>=4.0",
"seaborn>=0.13.2",
"Sphinx>=8.1",
"sphinx-argparse-cli>=1.19",
"sphinx-autodoc-typehints>=3.0",
"sphinxcontrib-mermaid>=1.0.0",
"myst-parser>=4.0",
"furo>=2024.8",
"jupyter>=1.1",
"pandas-stubs>=2.2",
"pyarrow>=19.0",
]
[tool.uv]
default-groups = ["dev"]
native-tls = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cu124", extra = "cuda" },
]
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[tool.mypy]
plugins = [
"numpy.typing.mypy_plugin",
]
mypy_path = "stubs"
files = [
"src",
"tests",
"examples",
"tutorials",
]
check_untyped_defs = true
disable_error_code = [
"misc",
"import-untyped",
]
[[tool.mypy.overrides]]
# These are local script-style modules in examples/ that are not installed as packages.
# Pyright resolves them via the file system; mypy cannot, so we suppress import errors here
# rather than using inline `# type: ignore[import-not-found]` comments.
module = [
"problem",
"simulator",
"doe",
"brute_force",
"brute_force_loc_and_scale_estimates",
"importance_sampling",
"usecase",
"usecase.*",
"axtreme_case",
]
ignore_missing_imports = true
[tool.pyright]
stubPath = "stubs"
include = [
"src",
"tests",
"examples",
"tutorials",
]
exclude = [
"**/junk*",
]
typeCheckingMode = "basic"
useLibraryCodeForTypes = true
reportMissingParameterType = "error"
reportUnknownParameterType = "warning"
reportUnknownMemberType = false # consider to set to `false` if you work a lot with matplotlib and pandas, which are both not properly typed and known to trigger this warning
reportMissingTypeArgument = "error"
reportPropertyTypeMismatch = "error"
reportFunctionMemberAccess = "warning"
reportPrivateUsage = false # <- TODO: set back to "warning" and resolve issues raised, instead of globally dectivating the rule. CLAROS, 2024-09-18
reportPrivateImportUsage = false
reportTypeCommentUsage = "warning"
reportIncompatibleMethodOverride = "warning"
reportIncompatibleVariableOverride = "error"
reportInconsistentConstructor = "error"
reportOverlappingOverload = "warning"
reportUninitializedInstanceVariable = "warning"
reportCallInDefaultInitializer = "warning"
reportUnnecessaryIsInstance = "information"
reportUnnecessaryCast = "warning"
reportUnnecessaryComparison = "warning"
reportUnnecessaryContains = "warning"
reportUnusedCallResult = "warning"
reportUnusedExpression = "warning"
reportMatchNotExhaustive = "warning"
reportUntypedFunctionDecorator = "warning"
reportUntypedClassDecorator = "warning"
reportUntypedBaseClass = "error"
reportUntypedNamedTuple = "warning"
reportUnnecessaryTypeIgnoreComment = "information"
# Activate the following rules only locally and temporary, i.e. for a QA session.
# (For server side CI they are considered too strict.)
# reportMissingTypeStubs = true
# reportConstantRedefinition = "warning"
# reportImportCycles = "warning"
# reportImplicitStringConcatenation = "warning"
reportArgumentType = false # <- TODO: delete and resolve issues raised, instead of globally dectivating the rule. CLAROS, 2024-09-18