-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
177 lines (164 loc) · 4.84 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
175
176
177
[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.13"
license = { file = "LICENSE" }
authors = [
{ name = "Sebastian Winter", email = "[email protected]" },
{ name = "Kristoffer Skare", email = "[email protected]" },
{ name = "Magnus Kristiansen", email = "[email protected]" },
]
maintainers = [
{ name = "Claas Rostock", email = "[email protected]" },
{ name = "Jorge Luis Mendez", email = "[email protected]" },
]
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",
]
[project.optional-dependencies]
cuda = [
"torch==2.4.1+cu124",
]
[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.9.2",
"pyright>=1.1.392",
"mypy>=1.14",
"sourcery>=1.31",
"pre-commit>=4.0",
"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",
]
find-links = [
"https://download.pytorch.org/whl/torch",
]
native-tls = 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.pyright]
stubPath = "stubs"
include = [
"src",
"tests",
"examples",
"tutorials",
]
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
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"
reportShadowedImports = "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