Skip to content

Commit 129f533

Browse files
committed
refactor: new ruff wants this
1 parent 4471677 commit 129f533

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22

33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.4.1
4+
rev: v0.11.13
55
hooks:
66
- id: ruff-format
7-
- id: ruff
7+
- id: ruff-check

cogapp/hashhandler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def extract_hash_from_line(self, line):
8787
return ("hex", hash_match.group("hash"))
8888
else:
8989
# New format: sum with base64
90-
assert hash_match.group(
91-
"b64hash"
92-
), "Regex matched but no hash group found"
90+
assert hash_match.group("b64hash"), (
91+
"Regex matched but no hash group found"
92+
)
9393
return ("base64", hash_match.group("b64hash"))
9494
return (None, None)
9595

0 commit comments

Comments
 (0)