From e67f3977c81e5092848c7006e110e8d2e38610d5 Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Mon, 24 Aug 2026 18:08:20 -0700 Subject: [PATCH] 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. --- ruff.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruff.toml b/ruff.toml index 42281081ad1..2a2edeb1546 100644 --- a/ruff.toml +++ b/ruff.toml @@ -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",