From e43f8fdf85dc51da53fe4ab61131098eb19d7d37 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 21:26:36 +0000 Subject: [PATCH 1/3] [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.14.6 → v0.14.8](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.6...v0.14.8) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.2...v1.19.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 d8d26da6..92b98122 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.14.6" + rev: "v0.14.8" hooks: - id: ruff-check args: ["--fix"] @@ -43,7 +43,7 @@ repos: language: python additional_dependencies: [pygments, restructuredtext_lint] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.18.2 + rev: v1.19.0 hooks: - id: mypy files: ^(src/|testing/) From 481396d4f643c57b2a7808cb6369b0cb698fe42b Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 10 Dec 2025 08:26:58 +0100 Subject: [PATCH 2/3] Fix rst-lint: error: unrecognized arguments: --encoding --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92b98122..ba21d758 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: hooks: - id: rst name: rst - entry: rst-lint --encoding utf-8 + entry: rst-lint files: ^(HOWTORELEASE.rst|README.rst)$ language: python additional_dependencies: [pygments, restructuredtext_lint] From eb2a601df1fe159a2783d00aa150e6f2afa546b1 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 10 Dec 2025 08:28:15 +0100 Subject: [PATCH 3/3] [mypy] Fix better name for untyped decorator in mypy's new version --- testing/test_hookcaller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_hookcaller.py b/testing/test_hookcaller.py index 5c42f4b6..f9855814 100644 --- a/testing/test_hookcaller.py +++ b/testing/test_hookcaller.py @@ -327,7 +327,7 @@ def he_myhook3(arg1) -> None: @pytest.mark.parametrize("name", ["hookwrapper", "optionalhook", "tryfirst", "trylast"]) @pytest.mark.parametrize("val", [True, False]) def test_hookimpl(name: str, val: bool) -> None: - @hookimpl(**{name: val}) # type: ignore[misc,call-overload] + @hookimpl(**{name: val}) # type: ignore[untyped-decorator,call-overload] def he_myhook1(arg1) -> None: pass