Skip to content

Commit d397bc7

Browse files
authored
chore(pre-commit): autoupdate hooks (#144)
2 parents 800557d + e20efe8 commit d397bc7

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: check-added-large-files
1919

2020
- repo: https://github.com/psf/black-pre-commit-mirror
21-
rev: 25.11.0
21+
rev: 26.1.0
2222
hooks:
2323
- id: black
2424
types:
@@ -32,7 +32,7 @@ repos:
3232
- python
3333

3434
- repo: https://github.com/pycqa/bandit
35-
rev: 1.9.0
35+
rev: 1.9.3
3636
hooks:
3737
- id: bandit
3838
args: ["-ll"]

tests/test_format.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,10 @@ def test_match(conventional_commit):
547547

548548

549549
def test_match_multiline(conventional_commit):
550-
match = conventional_commit.match(
551-
"""test(scope): subject line
550+
match = conventional_commit.match("""test(scope): subject line
552551
553552
body copy
554-
"""
555-
)
553+
""")
556554
assert isinstance(match, re.Match)
557555
assert match.group("type") == "test"
558556
assert match.group("scope") == "(scope)"
@@ -572,12 +570,10 @@ def test_match_dots(conventional_commit):
572570

573571

574572
def test_match_invalid_type(conventional_commit):
575-
match = conventional_commit.match(
576-
"""invalid(scope): subject line
573+
match = conventional_commit.match("""invalid(scope): subject line
577574
578575
body copy
579-
"""
580-
)
576+
""")
581577
assert isinstance(match, re.Match)
582578
assert match.group("type") is None
583579
assert match.group("scope") == ""

0 commit comments

Comments
 (0)