generated from MinBZK/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
168 lines (146 loc) · 3.72 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
[tool.poetry]
name = "amt"
version = "0.1.0"
description = ""
authors = ["ai-validatie-team <ai-validatie@minbzk.nl>"]
readme = "README.md"
license = "EUPL-1.2"
repository = "https://github.com/MinBZK/amt"
keywords = ["AI", "Validation", "Transparency", "Algorithm"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: FastAPI",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed"
]
packages = [
{ include = "amt" }
]
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.115.5"
alembic = "^1.14.0"
pydantic = "2.10.4"
jinja2 = "^3.1.5"
pydantic-settings = "^2.7.0"
psycopg2-binary = "^2.9.10"
uvicorn = {extras = ["standard"], version = "^0.34.0"}
pyyaml = "^6.0.1"
babel = "^2.15.0"
httpx = "^0.28.1"
pyyaml-include = "^2.2"
click = "^8.1.8"
python-ulid = {extras = ["pydantic"], version = "^3.0.0"}
fastapi-csrf-protect = "^0.3.4"
sqlalchemy = {extras = ["asyncio"], version = "^2.0.36"}
sqlalchemy-utils = "^0.41.2"
liccheck = "^0.9.2"
authlib = "^1.4.0"
aiosqlite = "^0.20.0"
asyncpg = "^0.30.0"
async-lru = "^2.0.4"
jinja2-base64-filters = "^0.1.4"
python-multipart = "^0.0.20"
minio = "^7.2.12"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.3"
pytest-asyncio = "^0.25.0"
nest-asyncio = "^1.6.0"
pytest-mock = "^3.14.0"
coverage = "^7.6.7"
playwright = "^1.47.0"
pytest-playwright = "^0.6.2"
pytest-httpx = "^0.35.0"
freezegun = "^1.5.1"
vcrpy = "^6.0.2"
pytest-minio-mock = "^0.4.16"
[tool.poetry.group.dev.dependencies]
ruff = "^0.8.4"
pre-commit = "^4.0.1"
polib = "^1.2.0"
pyright = "^1.1.389"
liccheck = "^0.9.2"
setuptools = "^75.5.0"
types-pyyaml = "^6.0.12.20241221"
djlint = "^1.36.1"
[tool.poetry.urls]
"Issue Tracker" = "https://github.com/MinBZK/amt/issues"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Ruff settings: https://docs.astral.sh/ruff/configuration/
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["amt","tests"]
exclude = ["amt/migrations"]
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = ["I", "SIM", "B", "UP", "F", "E", "S", "C90", "DTZ", "LOG", "PIE", "PT", "ERA", "W", "C", "TRY", "RUF", "ANN"]
fixable = ["ALL"]
task-tags = ["TODO"]
ignore = ["TRY003"]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = ["S101", "ANN201"]
[tool.ruff.lint.mccabe]
max-complexity = 8
[tool.pyright]
pythonVersion = "3.12"
typeCheckingMode = "strict"
reportMissingImports = true
reportMissingTypeStubs = true
reportUnnecessaryIsInstance = false
exclude = [
"amt/migrations",
".venv",
"node_modules"
]
[tool.coverage.run]
branch = true
command_line = "-m pytest"
relative_files = true # needed for sonarcloud code coverage
omit = [
"tests/*"
]
concurrency = ["greenlet", "thread"]
[tool.coverage.report]
fail_under = 90
[tool.coverage.html]
directory = "htmlcov"
title = "amt"
[tool.pytest.ini_options]
testpaths = [
"tests"
]
addopts = "--strict-markers -v -q --tracing on"
filterwarnings = [
"ignore::UserWarning"
]
log_cli = true
log_cli_level = "INFO"
faulthandler_timeout = 20
markers = [
"slow: marks tests as slow",
"enable_auth: marks tests that require authentication"
]
[tool.liccheck]
level = "PARANOID"
dependencies = true
authorized_licenses = [
"Apache Software",
"Artistic",
"BSD",
"GNU General Public License v2 or later (GPLv2+)",
"GNU General Public License v3 or later (GPLv3+)",
"GNU General Public License (GPL)",
"GNU Library or Lesser General Public License (LGPL)",
"MIT",
"The Unlicense (Unlicense)",
"ISC License (ISCL)",
"Mozilla Public License 2.0 (MPL 2.0)",
"Python Software Foundation",
"Public Domain"
]