mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 20:34:02 +01:00
Enable PERF203: add per-file-ignores for intentional try-except-in-loop patterns
This commit is contained in:
parent
6a519db40f
commit
d8e17e92e7
@ -58,7 +58,6 @@ ignore = [
|
|||||||
"FBT003", # Boolean positional value - common pattern
|
"FBT003", # Boolean positional value - common pattern
|
||||||
"ARG001", # Unused function argument - often needed for API compatibility
|
"ARG001", # Unused function argument - often needed for API compatibility
|
||||||
"ARG002", # Unused method argument - often needed for API compatibility
|
"ARG002", # Unused method argument - often needed for API compatibility
|
||||||
"PERF203", # try-except-in-loop - often necessary
|
|
||||||
"PGH003", # blanket-type-ignore - existing code
|
"PGH003", # blanket-type-ignore - existing code
|
||||||
"PLC0415", # import-outside-top-level - sometimes necessary
|
"PLC0415", # import-outside-top-level - sometimes necessary
|
||||||
"N816", # mixed-case-variable-in-global-scope - often constants
|
"N816", # mixed-case-variable-in-global-scope - often constants
|
||||||
@ -110,6 +109,15 @@ unfixable = []
|
|||||||
"poker-modifier-app/*.py" = [
|
"poker-modifier-app/*.py" = [
|
||||||
"INP001", # Folder has hyphen, can't be a valid Python package
|
"INP001", # Folder has hyphen, can't be a valid Python package
|
||||||
]
|
]
|
||||||
|
"PYTHON/downloadCats/generate_cats.py" = [
|
||||||
|
"PERF203", # Try-except needed for download resilience in loop
|
||||||
|
]
|
||||||
|
"PYTHON/lichess_bot/main.py" = [
|
||||||
|
"PERF203", # Try-except needed for stream/move error handling in loops
|
||||||
|
]
|
||||||
|
"PYTHON/randomize_numbers/random_digits.py" = [
|
||||||
|
"PERF203", # Try-except needed for parsing user input in loop
|
||||||
|
]
|
||||||
|
|
||||||
[tool.ruff.lint.pydocstyle]
|
[tool.ruff.lint.pydocstyle]
|
||||||
convention = "google" # Use Google docstring convention
|
convention = "google" # Use Google docstring convention
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user