mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-26 06:47:19 +01: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:
|
try:
|
||||||
move = board.parse_san(main_sans[bl.ply - 1])
|
move = board.parse_san(main_sans[bl.ply - 1])
|
||||||
except Exception:
|
except Exception:
|
||||||
|
logging.debug("Skipping blunder: failed to parse fallback move")
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|||||||
@ -64,7 +64,6 @@ ignore = [
|
|||||||
"S311", # suspicious-non-cryptographic-random - not security critical
|
"S311", # suspicious-non-cryptographic-random - not security critical
|
||||||
"S310", # suspicious-url-open - acceptable for scripts
|
"S310", # suspicious-url-open - acceptable for scripts
|
||||||
"S110", # try-except-pass - common pattern in scripts
|
"S110", # try-except-pass - common pattern in scripts
|
||||||
"S112", # try-except-continue - acceptable pattern
|
|
||||||
"DTZ005", # datetime.now without tz - acceptable for local scripts
|
"DTZ005", # datetime.now without tz - acceptable for local scripts
|
||||||
"PERF401", # manual-list-comprehension - style preference
|
"PERF401", # manual-list-comprehension - style preference
|
||||||
"RUF005", # collection-literal-concatenation - style preference
|
"RUF005", # collection-literal-concatenation - style preference
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user