ci: add ruff static gate to make check and Gitea workflow
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:
1 parent
8656d9bc8a
commit
2b9617fd71
6 files changed
+63
-10
No files matched your search
@@ -19,7 +19,7 @@ SENSOR_KEYS = {"id", "name", "lat", "lon", "mean", "p95", "battery"}
|
||||
|
||||
def _timestamp(value: str) -> datetime:
|
||||
assert value.endswith("Z")
|
||||
return datetime.fromisoformat(value.replace("Z", "+00:00"))
|
||||
return datetime.fromisoformat(value)
|
||||
|
||||
|
||||
def test_bootstrap_shape(client):
|
||||
|
||||
Reference in new issue
Block a user