@@ -198,7 +198,7 @@ select = [
198198 " PLC" , # Pylint Conventions
199199 " PLE" , # Pylint Errors
200200 # "PLR", # Pylint Refactoring suggestions
201- # "PLW", # Pylint Warnings
201+ " PLW" , # Pylint Warnings
202202 # "PT", # flake8-pytest-style (warnings about unit test best practices)
203203 # "PTH", # flake8-use-pathlib (force use of pathlib instead of os.path)
204204 " PYI" , # flake8-pyi (warnings related to type hint best practices)
@@ -255,7 +255,8 @@ per-file-ignores."cmd2/__init__.py" = [
255255]
256256
257257per-file-ignores."examples/*.py" = [
258- " INP001" , # Module is part of an implicit namespace
258+ " INP001" , # Module is part of an implicit namespace
259+ " PLW2901" , # loop variable overwritten inside loop
259260]
260261
261262per-file-ignores."examples/override_parser.py" = [
@@ -278,11 +279,19 @@ per-file-ignores."tests/*.py" = [
278279 " E501" , # Line too long
279280]
280281
282+ per-file-ignores."tests/test_argparse.py" = [
283+ " PLW2901" , # loop variable overwritten inside loop
284+ ]
285+
281286per-file-ignores."tests/pyscript/*.py" = [
282287 " F821" , # Undefined name `app`
283288 " INP001" , # Module is part of an implicit namespace
284289]
285290
291+ per-file-ignores."tests_isolated/test_commandset/test_commandset.py" = [
292+ " PLW0603" , # Using the global statement to update {name} is discouraged
293+ ]
294+
286295
287296[tool .ruff .format ]
288297# Like Black, use double quotes for strings.
0 commit comments