Skip to content

Commit 3278e4d

Browse files
[pre-commit.ci] pre-commit autoupdate (#152)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Branch Vincent <[email protected]>
1 parent b29b94b commit 3278e4d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ repos:
1919
- id: check-docstring-first
2020

2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.12.12
22+
rev: v0.14.9
2323
hooks:
24-
- id: ruff
24+
- id: ruff-check
2525
- id: ruff-format
2626

2727
- repo: https://github.com/woodruffw/zizmor-pre-commit
28-
rev: v1.12.1
28+
rev: v1.18.0
2929
hooks:
3030
- id: zizmor

tests/bundlers/test_bundler_manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import re
4+
35
import pytest
46

57
from poetry_plugin_bundle.bundlers.bundler import Bundler
@@ -23,7 +25,7 @@ def test_bundler_raises_an_error_for_incorrect_bundler_classes() -> None:
2325
manager = BundlerManager()
2426

2527
with pytest.raises(
26-
BundlerManagerError, match='The bundler class "mock" does not exist.'
28+
BundlerManagerError, match=re.escape('The bundler class "mock" does not exist.')
2729
):
2830
manager.bundler("mock")
2931

@@ -43,6 +45,6 @@ def test_register_bundler_class_cannot_register_existing_bundler_classes() -> No
4345

4446
with pytest.raises(
4547
BundlerManagerError,
46-
match='A bundler class with the name "mock" already exists.',
48+
match=re.escape('A bundler class with the name "mock" already exists.'),
4749
):
4850
manager.register_bundler_class(MockBundler)

0 commit comments

Comments
 (0)