diff --git a/pyproject.toml b/pyproject.toml index c3c53eb3..a8e28ebe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -120,10 +120,13 @@ select = [ "PYI", # flake8-pathlib "PTH", + # flake8-builtins + "A", ] ignore = [ "E501", # Line too long "TRY003", # Long exception messages are acceptable for domain-specific errors + "A002", # Shadowing builtins (id, type) is intentional for API field names ] [tool.ruff.lint.per-file-ignores] diff --git a/tests/test_obfuscate.py b/tests/test_obfuscate.py index 04b98225..193641a9 100644 --- a/tests/test_obfuscate.py +++ b/tests/test_obfuscate.py @@ -28,7 +28,7 @@ class TestObfucscateSensitive: def test_obfuscate_list_with_none(self): """Ensure lists containing None values are handled without modification.""" - input = { + data = { "d": [ 0, 0, @@ -56,4 +56,4 @@ def test_obfuscate_list_with_none(self): None, ] } - assert obfuscate_sensitive_data(input) == input + assert obfuscate_sensitive_data(data) == data