@@ -198,7 +198,7 @@ select = [
198
198
" PLC" , # Pylint Conventions
199
199
" PLE" , # Pylint Errors
200
200
# "PLR", # Pylint Refactoring suggestions
201
- # "PLW", # Pylint Warnings
201
+ " PLW" , # Pylint Warnings
202
202
# "PT", # flake8-pytest-style (warnings about unit test best practices)
203
203
# "PTH", # flake8-use-pathlib (force use of pathlib instead of os.path)
204
204
" PYI" , # flake8-pyi (warnings related to type hint best practices)
@@ -255,7 +255,8 @@ per-file-ignores."cmd2/__init__.py" = [
255
255
]
256
256
257
257
per-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
259
260
]
260
261
261
262
per-file-ignores."examples/override_parser.py" = [
@@ -278,11 +279,19 @@ per-file-ignores."tests/*.py" = [
278
279
" E501" , # Line too long
279
280
]
280
281
282
+ per-file-ignores."tests/test_argparse.py" = [
283
+ " PLW2901" , # loop variable overwritten inside loop
284
+ ]
285
+
281
286
per-file-ignores."tests/pyscript/*.py" = [
282
287
" F821" , # Undefined name `app`
283
288
" INP001" , # Module is part of an implicit namespace
284
289
]
285
290
291
+ per-file-ignores."tests_isolated/test_commandset/test_commandset.py" = [
292
+ " PLW0603" , # Using the global statement to update {name} is discouraged
293
+ ]
294
+
286
295
287
296
[tool .ruff .format ]
288
297
# Like Black, use double quotes for strings.
0 commit comments