mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 11:49:28 +00:00
style(prover-arm): format
The previous commit was gated through a pipe whose exit status was tail's, not ruff's; CI caught the unformatted file. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
5980bf8377
commit
7f1b820d5a
@@ -94,7 +94,9 @@ def _prove(change, repos, *, max_depth):
|
||||
except _Absent as error:
|
||||
# A file git holds empty is read, not unread: the first smoke run failed four changes on
|
||||
# legitimately empty files (`__init__.py`, an empty asset). Anything else absent is unread.
|
||||
held = checked_git.runner(["git", "-C", str(root), "cat-file", "-s", f"HEAD:{relative}"], capture_output=True, text=True)
|
||||
held = checked_git.runner(
|
||||
["git", "-C", str(root), "cat-file", "-s", f"HEAD:{relative}"], capture_output=True, text=True
|
||||
)
|
||||
if error.reason == "empty_source" and held.returncode == 0 and int(held.stdout.strip() or 0) == 0:
|
||||
instrument["empty_files"] = instrument.get("empty_files", 0) + 1
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user