Skip to content

Commit 16f584f

Browse files
authored
DEV: Move Ruff rule PLW0603 (#3189)
PLW0603: Using the global statement to update is discouraged. Move from excluding in tool.ruff.lint to tool.ruff.lint.per-file-ignores (only place it is used).
1 parent 4470bef commit 16f584f

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
@@ -169,7 +169,6 @@ ignore = [
169169
"N817", # CamelCase `PagesAttributes` imported as acronym `PA`
170170
"PERF203", # `try`-`except` within a loop incurs performance overhead
171171
"PGH003", # Use specific rule codes when ignoring type issues
172-
"PLW0603", # Using the global statement to update `CUSTOM_RTL_SPECIAL_CHARS` is discouraged
173172
"PLW1510", # `subprocess.run` without explicit `check` argument
174173
"PLW2901", # `with` statement variable `img` overwritten by assignment target
175174
"PT011", # `pytest.raises(ValueError)` is too broad, set the `match`
@@ -217,6 +216,7 @@ max-complexity = 54 # Recommended: 10
217216
"_writer.py" = ["S324"]
218217
"pypdf/_codecs/symbol.py" = ["A005"] # Module shadows a Python standard-library module
219218
"types.py" = ["A005"] # Module shadows a Python standard-library module
219+
"pypdf/_text_extraction/__init__.py" = ["PLW0603"] # Using the global statement to update is discouraged
220220
"docs/conf.py" = ["INP001", "PTH100"]
221221
"json_consistency.py" = ["T201"]
222222
"make_release.py" = ["S603", "S607", "T201"]

0 commit comments

Comments
 (0)