From c5f18a32875038a4311bdca60ca75c488cdd98f7 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 03:39:52 +0000 Subject: [PATCH] chore(lint): enable PLW0108 rule (no unnecessary lambdas) Un-ignore PLW0108 which flags lambdas that can be replaced by the inner function directly. The codebase already has 0 violations, so this just prevents future regressions. Co-Authored-By: AJ Steers --- .ruff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruff.toml b/.ruff.toml index f0b61926a..f417913b4 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -91,7 +91,7 @@ ignore = [ "ERA001", # Remove commented-out code "FIX002", # Allow "TODO:" until release (then switch to requiring links via TDO003) "PLW0603", # Using the global statement to update _cache is discouraged - "PLW0108", # Lambda may be unnecessary; consider inlining inner function + # "PLW0108", # Lambda may be unnecessary; consider inlining inner function (now enforced) "TRY003", # Allow exceptions to receive strings in constructors. # "TD003", # Require links for TODOs (now enabled) "UP038", # Allow tuples instead of "|" syntax in `isinstance()` checks ("|" is sometimes slower)