From 6a0ff603755b2b5af1f6e272054894867acfaed1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:04:02 -0700 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#288) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- tests/conftest.py | 2 +- tests/test_unix.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dd53794..aa9c8d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,13 +16,13 @@ repos: additional_dependencies: [ "tomli>=2.0.1" ] args: [ "--in-place", "--config", "./pyproject.toml" ] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.0" + rev: "v0.5.4" hooks: - id: ruff-format - id: ruff args: [ "--fix", "--unsafe-fixes", "--exit-non-zero-on-fix" ] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.1.3" + rev: "2.1.4" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.14.2"] diff --git a/tests/conftest.py b/tests/conftest.py index 06c6802..3846ea2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -37,6 +37,6 @@ def func_path(request: SubRequest) -> str: return prop.replace("_dir", "_path") -@pytest.fixture() +@pytest.fixture def props() -> tuple[str, ...]: return PROPS diff --git a/tests/test_unix.py b/tests/test_unix.py index 3c096af..326f8d7 100644 --- a/tests/test_unix.py +++ b/tests/test_unix.py @@ -103,12 +103,12 @@ def _func_to_path(func: str) -> XDGVariable | None: return mapping.get(func) -@pytest.fixture() +@pytest.fixture def dirs_instance() -> Unix: return Unix(multipath=True, opinion=False) -@pytest.fixture() +@pytest.fixture def _getuid(mocker: MockerFixture) -> None: mocker.patch("platformdirs.unix.getuid", return_value=1234)