Dashboard_Admin_Sys/mise.toml
Guillaume DENIS 05df4c0dd8 chore(server): reformat code and improve mise tooling config
- Normalise le style (guillemets doubles, black/ruff)
- mise.toml : ajoute [tools], tâches dev/clean, port par défaut
- server.py : fallback PORT via variable d'environnement
2026-07-04 18:17:22 +02:00

22 lines
648 B
TOML

# Portail Infra — mise config
# https://mise.jdx.dev
[tools]
python = "3.13"
uv = "latest"
[env]
# Port par défaut du serveur (surchargé par l'argument CLI de server.py)
PORT = "8000"
[tasks.run]
description = "Lancer le serveur du portail (CMDB + Certificats + Switch)"
run = "uv run server.py {{arg(name='port', default='')}}"
[tasks.dev]
description = "Lancer le serveur en watch (redémarre à chaque modif .py)"
run = "uv run --with watchfiles watchfiles 'python server.py' server.py cmdb"
[tasks.clean]
description = "Nettoyer les caches Python"
run = "find . -type d -name __pycache__ -prune -exec rm -rf {} + ; rm -rf .ruff_cache"