From c04fae6377d5fb221b1029a5e2cef7746f722c87 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 21:20:52 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.14.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.12...v0.14.9) - [github.com/woodruffw/zizmor-pre-commit: v1.12.1 → v1.18.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.12.1...v1.18.0) --- .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 f4a9819..22160b3 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-format - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.12.1 + rev: v1.18.0 hooks: - id: zizmor From 598509ee3b901e636fd0029bf3e3a990df26366c Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Sat, 20 Dec 2025 15:12:43 -0800 Subject: [PATCH 2/2] fix lints --- .pre-commit-config.yaml | 2 +- tests/bundlers/test_bundler_manager.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 22160b3..c977cd0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.14.9 hooks: - - id: ruff + - id: ruff-check - id: ruff-format - repo: https://github.com/woodruffw/zizmor-pre-commit 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)