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
+4 -1
View File
@@ -245,7 +245,10 @@ def main():
try:
with open(path) as fh:
rows.append(json.load(fh))
except Exception:
except Exception: # noqa: S110 - a stream that wrote no result is reported below
# A stream that crashed or produced no JSON output is expected here;
# the empty-``rows`` check below reports that case explicitly, so this
# is not a hidden failure.
pass
if not rows:
print("no stream produced results", file=sys.stderr)