ci: add ruff static gate to make check and Gitea workflow
ci / check (push) Failing after 40s
ci / check (pull_request) Failing after 6s

Adds ruff as a dev dependency with an explicit py312 E/F rule set, so the
gate stays stable across ruff releases. make check now runs uv sync --frozen,
ruff, compileall, and pytest; make lint runs ruff alone.

The Gitea job splits the same checks into named steps for readable failures
and has a 10-minute timeout. No secrets, image push, or cluster access.
This commit is contained in:
Noel Sabia committed 2026-11-14 06:04:15 +01:00
1 parent 8656d9bc8a
commit 2b9617fd71
6 files changed
+63 -10

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ uv sync
make data # needs the raw CSV, first run also fetches Open-Meteo weather
make train # writes artifacts/model.joblib, metrics.json, forecasts.json
make test
make check # CI gate: uv sync --frozen, compileall, pytest
make check # CI gate: sync --frozen, ruff, compileall, pytest
make serve # http://localhost:8000
```
@@ -153,7 +153,7 @@ src/pulsecast/
small.py busy classifier + flexible CSV parser
retrain.py runtime forecast retraining from upload
server.py FastAPI app and training job manager
tests/ schema, health, prediction, small-training job
tests/ schema, bootstrap, health, prediction, small-training job
model_card.md features, split, baseline, ablation, limits, leakage
```