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"] 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])