mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(ci): let ruff.toml's RUF100 police PLE0302 directives
`lint.external`'s "PL" entry shadowed the newly graduated PLE0302, so no config's RUF100 could report a stale `# noqa: PLE0302`. The strict gate selects only PLC, PLR and PLW rules, so splitting the family entry keeps every one of those protected while handing PLE back to this config.
This commit is contained in:
parent
53c6b7f948
commit
e67f3977c8
1 changed files with 3 additions and 2 deletions
|
|
@ -17,9 +17,10 @@ lint.external = [
|
|||
# Enforced by the strict-rule gate (scripts/ruff_strict_gate.py + ruff-strict.toml).
|
||||
# Family entries whose every strict rule graduated into extend-select above (FURB), and
|
||||
# standalone graduated codes (I001, RUF010, RUF022, RUF023, RUF051), are dropped so this
|
||||
# config's RUF100 polices their directives itself.
|
||||
# config's RUF100 polices their directives itself. PL is split into PLC/PLR/PLW for the
|
||||
# same reason: no PLE rule is enforced elsewhere, so PLE0302's directives belong to us.
|
||||
"ANN", "ASYNC230", "B", "C", "D419", "DTZ", "EXE", "LOG015", "N999", "PERF",
|
||||
"PIE", "PL", "PYI", "RET", "RUF012", "RUF015", "RUF019",
|
||||
"PIE", "PLC", "PLR", "PLW", "PYI", "RET", "RUF012", "RUF015", "RUF019",
|
||||
"RUF046", "RUF059", "S110", "S112", "SIM", "TC", "TID251", "TRY", "UP",
|
||||
# Enforced by upstream litellm's ruff config, but not run in this repo's CI
|
||||
"PLC0415", "E402", "BLE001", "ARG002", "S102", "S324", "S606", "D401", "F403", "F405",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue