Initialise le back-end Django de la Phase 1
- Modèles : utilisateur (e-mail comme identifiant, statut, n° INAMI), traces d'e-mails, facteurs, sources, classes de seuil, contenus validés avec historique et références numérotées ; rôles par groupes. - Modules de facteur appelés en parallèle (httpx) : bruit et inondation Wallonie via WalOnMap, qualité de l'air via irCELine ; Bruxelles et radon signalés indisponibles en attendant leurs sources. - Géocodage Nominatim (Best Address à raccorder), région déduite du code postal ; aucune adresse stockée ni journalisée. - API REST : POST /api/v1/assessments/, GET /api/v1/factors/, documentation OpenAPI sur /api/docs/. - Docker Compose (Python 3.12, PostgreSQL 17, Mailpit), uv, ruff, pytest (66 tests, HTTP mocké avec respx), CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
30186d8cf2
commit
22bddcf202
55 files changed
+3198
-1
No files matched your search
@@ -0,0 +1,50 @@
|
||||
[project]
|
||||
name = "prism"
|
||||
version = "0.1.0"
|
||||
description = "PRISM – Pollution and Risks Identification System for Medicine (back-end)"
|
||||
readme = "../README.md"
|
||||
license = "GPL-3.0-or-later"
|
||||
requires-python = ">=3.12,<3.13"
|
||||
dependencies = [
|
||||
"django~=5.2",
|
||||
"djangorestframework~=3.16",
|
||||
"drf-spectacular~=0.28",
|
||||
"django-environ~=0.12",
|
||||
"psycopg[binary]~=3.2",
|
||||
"argon2-cffi~=25.1",
|
||||
"django-otp~=1.6",
|
||||
"qrcode~=8.0",
|
||||
"django-simple-history~=3.8",
|
||||
"httpx~=0.28",
|
||||
"gunicorn~=23.0",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest~=8.3",
|
||||
"pytest-django~=4.10",
|
||||
"pytest-asyncio~=0.26",
|
||||
"respx~=0.22",
|
||||
"ruff~=0.11",
|
||||
]
|
||||
|
||||
[tool.uv]
|
||||
package = false
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py312"
|
||||
extend-exclude = ["*/migrations/*"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "W", "I", "B", "UP", "DJ", "S", "SIM"]
|
||||
ignore = ["S101"]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"tests/*" = ["S105", "S106"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
DJANGO_SETTINGS_MODULE = "config.settings"
|
||||
testpaths = ["tests"]
|
||||
asyncio_mode = "auto"
|
||||
asyncio_default_fixture_loop_scope = "function"
|
||||
Reference in new issue
Block a user