style: Clean up code formatting for improved readability
CI / lint-test-build (push) Failing after 14s

This commit is contained in:
2026-06-01 15:18:01 +02:00
parent d742577484
commit 0d1f6961d6
6 changed files with 23 additions and 46 deletions
+3 -6
View File
@@ -63,16 +63,13 @@ def scan_worktree() -> list[str]:
for rule_name, pattern in PATTERNS:
if pattern.search(content):
findings.append(
f"worktree:{path.relative_to(WORKSPACE)}:{rule_name}")
findings.append(f"worktree:{path.relative_to(WORKSPACE)}:{rule_name}")
return findings
def scan_git_history() -> list[str]:
cmd = ["git", "-C", str(WORKSPACE), "log", "--all",
"-p", "--pretty=format:%H"]
completed = subprocess.run(
cmd, check=False, capture_output=True, text=True)
cmd = ["git", "-C", str(WORKSPACE), "log", "--all", "-p", "--pretty=format:%H"]
completed = subprocess.run(cmd, check=False, capture_output=True, text=True)
if completed.returncode != 0:
return ["history_scan_failed"]