From d805b1be2401526b2ca5e9393e43f474f15a045a 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:41:29 +0000 Subject: [PATCH] chore(lint): enable SIM910 rule (no explicit None in dict.get) Un-ignore SIM910 which flags dict.get(key, None) calls where the None default is redundant since dict.get() already returns None by default. 72 existing violations are all auto-fixable. 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..99a061a5c 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -79,7 +79,7 @@ ignore = [ "PLR6301", # Allow class methods that don't use 'self' (otherwise noisy) "RUF022", # Allow unsorted __all__ (sometimes useful for grouping by type with pdoc) "S", # flake8-bandit (noisy, security related) - "SIM910", # Allow "None" as second argument to Dict.get(). "Explicit is better than implicit." + # "SIM910", # Allow "None" as second argument to Dict.get() (now enforced) "TC006", # Require quoted type names in cast() calls "TD002", # Require author for TODOs "ASYNC1", # flake8-trio (opinionated, noisy)