Skip to content

Commit 5130e80

Browse files
authored
DEV: Move Ruff rule A005
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 5e49d3b commit 5130e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ ignore = [
215215
max-complexity = 54 # Recommended: 10
216216

217217
[tool.ruff.lint.per-file-ignores]
218-
"_codecs/symbol.py" = ["A005"] # Module shadows a Python standard-library module
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
222222
"types.py" = ["A005"] # Module shadows a Python standard-library module
223223
"docs/conf.py" = ["INP001", "PTH100"]
224224
"json_consistency.py" = ["T201"]

0 commit comments

Comments
 (0)