mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 14:43:01 +02:00
Enable PERF203: add per-file-ignores for intentional try-except-in-loop patterns
This commit is contained in:
parent
e7cb8a3959
commit
8cc4bb89fc
@ -58,7 +58,6 @@ ignore = [
|
||||
"FBT003", # Boolean positional value - common pattern
|
||||
"ARG001", # Unused function 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
|
||||
"PLC0415", # import-outside-top-level - sometimes necessary
|
||||
"N816", # mixed-case-variable-in-global-scope - often constants
|
||||
@ -110,6 +109,15 @@ unfixable = []
|
||||
"poker-modifier-app/*.py" = [
|
||||
"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]
|
||||
convention = "google" # Use Google docstring convention
|
||||
|
||||
Loading…
Reference in New Issue
Block a user