From 980e24dc68bc3a507163d5a129041727df6d0f18 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:59:59 +0000 Subject: [PATCH 1/2] chore(pre-commit): autoupdate hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.11.0...26.1.0) - [github.com/pycqa/bandit: 1.9.0 → 1.9.3](https://github.com/pycqa/bandit/compare/1.9.0...1.9.3) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"] From e20efe8e7d4849b03607afb9c2ed52bef773413b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:00:13 +0000 Subject: [PATCH 2/2] chore(pre-commit): autofix run --- tests/test_format.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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") == ""