Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down