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
@@ -27,7 +27,16 @@ packages = ["src/pulsecast"]
|
||||
testpaths = ["tests"]
|
||||
addopts = "-q"
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py312"
|
||||
line-length = 100
|
||||
|
||||
[tool.ruff.lint]
|
||||
# Stable, fast static gate: syntax errors, undefined/unused names, imports.
|
||||
select = ["E4", "E7", "E9", "F"]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest>=9.2.0",
|
||||
"ruff>=0.17.5",
|
||||
]
|
||||
Reference in new issue
Block a user