diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b1007d..dcbd185 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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"] diff --git a/tests/test_format.py b/tests/test_format.py index 9bb8502..f14715a 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -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)" @@ -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") == ""