diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebced1b..b46a33d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0 + rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -23,14 +23,14 @@ repos: - id: check-added-large-files - repo: https://github.com/rbubley/mirrors-prettier - rev: 5ba47274f9b181bce26a5150a725577f3c336011 # frozen: v3.6.2 + rev: 14abee445aea04b39069c19b4bd54efff6775819 # frozen: v3.7.4 hooks: - id: prettier files: \.(html|md|yml|yaml|toml) args: [--prose-wrap=preserve] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 0b19ef1fd6ad680ed7752d6daba883ce1265a6de # frozen: v0.12.2 + rev: 5ba58aca0bd5bc7c0e1c0fc45af2e88d6a2bde83 # frozen: v0.14.10 hooks: - id: ruff args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"] diff --git a/tests/test_lazy_loader.py b/tests/test_lazy_loader.py index 44e9c3d..d68537f 100644 --- a/tests/test_lazy_loader.py +++ b/tests/test_lazy_loader.py @@ -215,7 +215,7 @@ def test_stub_loading_errors(tmp_path): stub2 = tmp_path / "stub2.pyi" stub2.write_text("from .mod import *\n") - with pytest.raises(ValueError, match=".*does not support star import"): + with pytest.raises(ValueError, match=r".*does not support star import"): lazy.attach_stub("name", str(stub2))