Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: check-added-large-files

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 26.1.0
hooks:
- id: black
types:
Expand All @@ -32,7 +32,7 @@ repos:
- python

- repo: https://github.com/pycqa/bandit
rev: 1.9.0
rev: 1.9.3
hooks:
- id: bandit
args: ["-ll"]
Expand Down
12 changes: 4 additions & 8 deletions tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,10 @@ def test_match(conventional_commit):


def test_match_multiline(conventional_commit):
match = conventional_commit.match(
"""test(scope): subject line
match = conventional_commit.match("""test(scope): subject line

body copy
"""
)
""")
assert isinstance(match, re.Match)
assert match.group("type") == "test"
assert match.group("scope") == "(scope)"
Expand All @@ -571,12 +569,10 @@ def test_match_dots(conventional_commit):


def test_match_invalid_type(conventional_commit):
match = conventional_commit.match(
"""invalid(scope): subject line
match = conventional_commit.match("""invalid(scope): subject line

body copy
"""
)
""")
assert isinstance(match, re.Match)
assert match.group("type") is None
assert match.group("scope") == ""
Expand Down
Loading