ci: exclude benchmark fixtures from ruff

CI runs `ruff format --check .` and `ruff check .` over the whole repo. The
benchmark fixtures are intentionally vulnerable, unformatted sample code (e.g.
a `% uid` SQL injection that ruff flags as UP031), and reformatting them would
shift the ground-truth line numbers the manifests depend on. Exclude
benchmarks/fixtures from ruff so lint/format only cover real project sources.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
Marius Ciepluch
2026-06-21 14:17:22 +02:00
co-authored by Claude Opus 4.8
parent cf9f945992
commit 8fe8911020
+3
View File
@@ -20,6 +20,9 @@ pythonpath = ["src"]
[tool.ruff] [tool.ruff]
line-length = 140 line-length = 140
target-version = "py311" target-version = "py311"
# Benchmark fixtures are intentionally vulnerable, unformatted sample corpora;
# linting/formatting them would flag the planted bugs and shift ground-truth lines.
extend-exclude = ["benchmarks/fixtures"]
[tool.ruff.lint] [tool.ruff.lint]
select = ["B", "E", "F", "I", "SIM", "UP"] select = ["B", "E", "F", "I", "SIM", "UP"]