Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(lint): cover every base-owned ruff rule in the strict gate's external list

mateo-berric3536c29a0eb
diff --git a/ruff-strict.toml b/ruff-strict.toml
index d20fb2e4d7d..974c49c787b 100644
--- a/ruff-strict.toml
+++ b/ruff-strict.toml
@@ -6,10 +6,13 @@ select = ["ANN", "ASYNC230", "B004", "B006", "B008", "B009", "B010", "B018", "B0
extend-select = []
# Overrides the inherited list: rules this gate enforces itself must NOT be external here,
# so this config's RUF100 flags their stale `# noqa` directives. What remains external is
-# only what other tooling enforces: upstream litellm's ruff config, plus the base ruff.toml
-# rules (T20, E7xx/F5xx/F8xx) this select list doesn't re-enable.
+# only what other tooling enforces: every base ruff.toml rule this select list doesn't
+# re-enable (all of the default E/F families plus T20/PGH004/RUF008/RUF009, minus the
+# strict-selected F401 and RUF100; F4 is split out so stale F401 noqas stay detectable),
+# plus upstream litellm's ruff config.
external = [
- "T20", "E731", "F541", "F841",
+ "T20", "PGH004", "RUF008", "RUF009", "E4", "E7", "E9",
+ "F402", "F404", "F406", "F407", "F5", "F6", "F7", "F8", "F9",
"PLC0415", "E402", "BLE001", "ARG002", "S102", "S324", "S606", "D401", "F403", "F405",
]