mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:23:15 +02:00
Enable S112: add logging to try-except-continue
This commit is contained in:
parent
b828c5de80
commit
d0eb820c87
@ -162,6 +162,7 @@ def fen_and_uci_for_blunders(
|
||||
try:
|
||||
move = board.parse_san(main_sans[bl.ply - 1])
|
||||
except Exception:
|
||||
logging.debug("Skipping blunder: failed to parse fallback move")
|
||||
continue
|
||||
else:
|
||||
continue
|
||||
|
||||
@ -64,7 +64,6 @@ ignore = [
|
||||
"S311", # suspicious-non-cryptographic-random - not security critical
|
||||
"S310", # suspicious-url-open - acceptable for scripts
|
||||
"S110", # try-except-pass - common pattern in scripts
|
||||
"S112", # try-except-continue - acceptable pattern
|
||||
"DTZ005", # datetime.now without tz - acceptable for local scripts
|
||||
"PERF401", # manual-list-comprehension - style preference
|
||||
"RUF005", # collection-literal-concatenation - style preference
|
||||
|
||||
Loading…
Reference in New Issue
Block a user