Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 4 additions & 2 deletions tests/bundlers/test_bundler_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

import re

import pytest

from poetry_plugin_bundle.bundlers.bundler import Bundler
Expand All @@ -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")

Expand All @@ -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)