diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f4a9819..c977cd0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,12 @@ repos: - id: check-docstring-first - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.12 + rev: v0.14.9 hooks: - - id: ruff + - id: ruff-check - id: ruff-format - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.12.1 + rev: v1.18.0 hooks: - id: zizmor diff --git a/tests/bundlers/test_bundler_manager.py b/tests/bundlers/test_bundler_manager.py index 2772910..3936d4a 100644 --- a/tests/bundlers/test_bundler_manager.py +++ b/tests/bundlers/test_bundler_manager.py @@ -1,5 +1,7 @@ from __future__ import annotations +import re + import pytest from poetry_plugin_bundle.bundlers.bundler import Bundler @@ -23,7 +25,7 @@ def test_bundler_raises_an_error_for_incorrect_bundler_classes() -> None: manager = BundlerManager() with pytest.raises( - BundlerManagerError, match='The bundler class "mock" does not exist.' + BundlerManagerError, match=re.escape('The bundler class "mock" does not exist.') ): manager.bundler("mock") @@ -43,6 +45,6 @@ def test_register_bundler_class_cannot_register_existing_bundler_classes() -> No with pytest.raises( BundlerManagerError, - match='A bundler class with the name "mock" already exists.', + match=re.escape('A bundler class with the name "mock" already exists.'), ): manager.register_bundler_class(MockBundler)