Skip to content

Commit d8ba5f9

Browse files
fix(ai-review): check.py passes the libraries' ruff (#18)
1 parent 6c9e696 commit d8ba5f9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎packs/ai-review/.agents/review/check.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
# the diffs are read by this script, not a person: no colour, external diff or textconv a config may turn on
3434
PLAIN_DIFF = ("diff", "--no-color", "--no-ext-diff", "--no-textconv")
3535
HUNK_LINES = re.compile(rb"^@@ -\d+(?:,\d+)? \+\d+(?:,\d+)? @@")
36-
HOW = "run it in your agent (/review-change, $review-change; .agents/review/README.md) before opening or updating the pull request"
36+
HOW = (
37+
"run it in your agent (/review-change, $review-change; .agents/review/README.md)"
38+
" before opening or updating the pull request"
39+
)
3740

3841
REVIEWED, BEHIND, SKIPPED = "reviewed", "behind", "skipped"
3942

@@ -65,7 +68,7 @@ def main() -> int:
6568

6669
try:
6770
status, message = check(refresh=args.refresh)
68-
except Exception as error: # noqa: BLE001 - the hook must never block a push, so a broken check only says so
71+
except Exception as error: # noqa: BLE001, RUF100 - the hook must never block a push, so a broken check only says so
6972
status, message = BEHIND, f"AI review: the check failed: {error!r}"
7073
if status == SKIPPED and not args.strict:
7174
return 0

0 commit comments

Comments
 (0)