From c4ca872ff61640d8a44627a832cc4e545b7d43fd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 16:52:24 +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/python-jsonschema/check-jsonschema: 0.37.2 → 0.37.3](https://github.com/python-jsonschema/check-jsonschema/compare/0.37.2...0.37.3) - [github.com/tox-dev/pyproject-fmt: v2.23.0 → v2.24.1](https://github.com/tox-dev/pyproject-fmt/compare/v2.23.0...v2.24.1) - [github.com/astral-sh/ruff-pre-commit: v0.15.16 → v0.15.17](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.16...v0.15.17) - [github.com/LilSpazJoekp/docstrfmt: v2.1.0 → v2.1.1](https://github.com/LilSpazJoekp/docstrfmt/compare/v2.1.0...v2.1.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a027b99..bca9ebb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.2 + rev: 0.37.3 hooks: - id: check-github-workflows args: ["--verbose"] @@ -19,11 +19,11 @@ repos: hooks: - id: tox-toml-fmt - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.23.0" + rev: "v2.24.1" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.16" + rev: "v0.15.17" hooks: - id: ruff-format - id: ruff-check @@ -43,7 +43,7 @@ repos: - mdformat-gfm>=1 - mdformat-ruff>=0.1.3 - repo: https://github.com/LilSpazJoekp/docstrfmt - rev: v2.1.0 + rev: v2.1.1 hooks: - id: docstrfmt args: ["-l", "120"] From dbf07f856446a77522134ff239e00f8e66007314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 15 Jun 2026 14:18:27 -0700 Subject: [PATCH 2/2] test: silence RUF076 on suite-wide autouse fixtures ruff 0.15.17 stabilized RUF076; flagged fixtures are whole-file setup/isolation fixtures that must run for every test in their file, so the rule is suppressed per-occurrence rather than disabled or the bump reverted. --- tests/test_macos.py | 2 +- tests/test_unix.py | 2 +- tests/test_windows.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_macos.py b/tests/test_macos.py index 7519425..eb7456b 100644 --- a/tests/test_macos.py +++ b/tests/test_macos.py @@ -29,7 +29,7 @@ ) -@pytest.fixture(autouse=True) +@pytest.fixture(autouse=True) # noqa: RUF076 def _fix_os_pathsep(mocker: MockerFixture) -> None: """If we're not running on macOS, set `os.pathsep` to what it should be on macOS.""" if sys.platform != "darwin": # pragma: darwin no cover diff --git a/tests/test_unix.py b/tests/test_unix.py index c94db29..651ed2e 100644 --- a/tests/test_unix.py +++ b/tests/test_unix.py @@ -18,7 +18,7 @@ from pytest_mock import MockerFixture -@pytest.fixture(autouse=True) +@pytest.fixture(autouse=True) # noqa: RUF076 def _reload_after_test() -> typing.Iterator[None]: yield importlib.reload(unix) diff --git a/tests/test_windows.py b/tests/test_windows.py index c7f99f3..3ff4204 100644 --- a/tests/test_windows.py +++ b/tests/test_windows.py @@ -42,7 +42,7 @@ _COMMON = os.path.normpath(_WIN_FOLDERS["CSIDL_COMMON_APPDATA"]) -@pytest.fixture(autouse=True) +@pytest.fixture(autouse=True) # noqa: RUF076 def _mock_get_win_folder(mocker: MockerFixture) -> None: mocker.patch("platformdirs.windows.get_win_folder", side_effect=lambda csidl: _WIN_FOLDERS[csidl])