Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#288)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jul 24, 2024
1 parent 8f59e91 commit 6a0ff60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tests/test_unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6a0ff60

Please sign in to comment.