added ruff code reivew

This commit is contained in:
ykcheungab
2026-09-27 19:21:55 +08:00
parent 07da372204
commit e2ac36269c
110 changed files with 890 additions and 426 deletions
+3 -1
View File
@@ -114,7 +114,9 @@ def test_config_name() -> str:
try:
if _is_usable_config(name):
return name
except Exception:
except Exception: # noqa: S112 - a failing config is simply not a candidate
# Probe: a config that cannot be loaded or lacks the key is simply not
# a candidate. Any such failure is reported if no config survives.
continue
raise RuntimeError(