-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
178 lines (158 loc) · 4.22 KB
/
pyproject.toml
File metadata and controls
178 lines (158 loc) · 4.22 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "AntaREST"
version = "2.31.0"
authors = [{name="RTE, Antares Web Team", email="andrea.sgattoni@rte-france.com" }]
description="Antares Server"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
requires-python = ">=3.11"
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dependencies = [
"Antares-Launcher==1.4.6",
"antares-study-version==1.0.20",
"antares-timeseries-generation==0.1.9",
"fastapi==0.135.1",
"uvicorn[standard]~=0.42.0",
"pydantic~=2.12.5",
"httpx~=0.28.1",
"python-multipart~=0.0.26",
"alembic~=1.18.4",
"bcrypt~=5.0.0",
"click~=8.3.0",
"filelock~=3.25.2",
"gunicorn~=23.0.0",
"humanize~=4.15.0",
"jsonref~=0.2",
"PyJWT~=2.12.0",
"MarkupSafe~=2.1.5",
"numpy~=2.4.2",
"numexpr==2.14.1",
"openpyxl~=3.1.5",
"pandas~=2.3.3",
"paramiko~=3.4.1",
"plyer~=2.1.0",
"polars~=1.35.2",
"psycopg2-binary~=2.9.9",
"pyarrow~=23.0.1",
"py7zr~=0.22.0",
"prometheus-client==0.24.1",
"python-json-logger~=2.0.7",
"PyYAML~=6.0.3",
# Note: celery[redis]~=5.5.x requires redis<6.0.0
"celery[redis]~=5.6.2",
"redis~=5.3.1",
"SQLAlchemy~=2.0.41",
"tables==3.10.2",
"typing_extensions~=4.15.0",
"xlsxwriter~=3.2.0",
]
[dependency-groups]
dev = [
{include-group = "test"},
"celery-types~=0.26.0",
"ruff~=0.15.2",
"mypy~=1.19.1",
"pre-commit~=4.5.1",
"pyinstaller==6.19.0",
"pyinstaller-hooks-contrib==2026.3",
# Extra requirements installed by `mypy --install-types`.
# IMPORTANT: Make sure the versions of these typing libraries match the versions
# of the corresponding implementation libraries used in production (in `pyproject.toml`).
"pandas-stubs~=2.3.3",
"pyarrow-stubs~=20.0.0",
"types-openpyxl~=3.1.5",
"types-paramiko~=3.4.0",
"types-psycopg2~=2.9.9",
"types-redis~=4.6.0",
"types-requests~=2.32.4",
"types-PyYAML~=5.4.1",
]
test = [
"checksumdir~=1.3.0",
"pytest~=9.0.2",
"pytest-rerunfailures~=16.1",
"pytest-xdist~=3.8.0",
"pytest-cov~=7.0.0",
"pytest-mock~=3.15.0",
"jinja2~=3.1.3",
]
[project.optional-dependencies]
desktop = ["PyQt6~=6.10.2"]
windows = [
"win10toast; platform_system == 'Windows'",
]
doc = [
"mkdocs",
"mkdocs-material",
"mkdocs-material-extensions",
"mike",
]
[project.urls]
Repository="https://github.com/AntaresSimulatorTeam/api-iso-antares"
[tool.hatch.build.targets.wheel]
packages = ["antarest"]
[tool.mypy]
exclude = "antarest/fastapi_jwt_auth/*"
strict = true
files = "antarest"
plugins = "pydantic.mypy"
enable_error_code = "explicit-override"
[[tool.mypy.overrides]]
module = ["antarest/fastapi_jwt_auth.*"]
follow_imports = "skip"
[[tool.mypy.overrides]]
module = [
"antareslauncher.*",
"jsonschema",
"pytest",
"httpx",
"jsonref",
"jsonref",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "alembic.*"
no_implicit_reexport = false
[tool.pytest.ini_options]
testpaths = ["tests"]
log_cli = false # you may set it to true for debugging purpose
log_cli_level = "info"
[tool.coverage.run]
omit = ["antarest/tools/admin.py", "antarest/fastapi_jwt_auth/*.py"]
relative_files = true # avoids absolute path issues in CI
[tool.ruff]
exclude = [
"alembic/*",
"conf/*",
"docs/*",
"examples/*",
"extra-hooks/*",
"resources/*",
"scripts/*",
"webapp/*",
]
# Same as Black.
line-length = 120
indent-width = 4
# Assumes Python 3.11
target-version = "py311"
[tool.ruff.lint]
## E4, E7, E9 and F are the default configuration of ruff, "I" is added to handle imports
select = ["E4", "E7", "E9", "F", "I"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"