From 4c23c3319c4207ae53f93edbfe45f7ac28ea96d3 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:38:44 +0000 Subject: [PATCH] chore(lint): enable A003 rule (no builtin shadowing in classes) Un-ignore A003 which prevents class attributes from shadowing Python builtins (e.g. `type`, `id`, `list`). 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..c65b8e764 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -86,7 +86,7 @@ ignore = [ "INP001", # Dir 'examples' is part of an implicit namespace package. Add an __init__.py. # TODO: Consider re-enabling these before release: - "A003", # Class attribute 'type' is shadowing a Python builtin + # "A003", # Class attribute 'type' is shadowing a Python builtin (now enforced) "BLE001", # Do not catch blind exception: Exception "ERA001", # Remove commented-out code "FIX002", # Allow "TODO:" until release (then switch to requiring links via TDO003)