Skip to content

Commit 598509e

Browse files
committed
fix lints
1 parent c04fae6 commit 598509e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
2222
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

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)