Skip to content

Commit 0750365

Browse files
authored
DEV: Move Ruff rule A005 (#3187)
A005: Module shadows a Python standard-library module. Move from a global ignore in the tool.ruff.lint section, to tool.ruff.lint.per-file-ignores (symbol.py and types.py are the shadowed modules). This will prevent new modules being added that shadow a Python standard-library module.
1 parent d94723f commit 0750365

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ select = ["ALL"]
129129
ignore = [
130130
"A001", # Variable is shadowing a Python builtin
131131
"A002", # Function argument is shadowing a Python builtin
132-
"A005", # Module shadows a Python standard-library module
133132
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
134133
"ARG001", # Unused function argument
135134
"ARG002", # Unused method argument
@@ -219,6 +218,8 @@ max-complexity = 54 # Recommended: 10
219218
"_cryptography.py" = ["S304", "S305"] # Use of insecure cipher / modes, aka RC4 and AES-ECB
220219
"_encryption.py" = ["S324"]
221220
"_writer.py" = ["S324"]
221+
"pypdf/_codecs/symbol.py" = ["A005"] # Module shadows a Python standard-library module
222+
"types.py" = ["A005"] # Module shadows a Python standard-library module
222223
"docs/conf.py" = ["INP001", "PTH100"]
223224
"json_consistency.py" = ["T201"]
224225
"make_release.py" = ["S603", "S607", "T201"]

0 commit comments

Comments
 (0)