mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 03:49:26 +00:00
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:
co-authored by
Claude Opus 4.8
parent
cf9f945992
commit
8fe8911020
@@ -20,6 +20,9 @@ pythonpath = ["src"]
|
||||
[tool.ruff]
|
||||
line-length = 140
|
||||
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]
|
||||
select = ["B", "E", "F", "I", "SIM", "UP"]
|
||||
|
||||
Reference in New Issue
Block a user