Skip to content
Open
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
exclude: ^docs
- id: check-executables-have-shebangs
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.245"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.20"
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 9.0.0a3
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
hooks:
- id: black
- repo: https://github.com/python-poetry/poetry
rev: 1.4.0
rev: 2.4.1
hooks:
- id: poetry-check

Expand Down
6 changes: 3 additions & 3 deletions tests/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def mock_platform(request: pytest.FixtureRequest, mocker: MockFixture):
return request.param


@pytest.fixture()
@pytest.fixture
def platform_paths(mock_platform):
map = {
"Linux": (
Expand All @@ -39,7 +39,7 @@ def platform_paths(mock_platform):
return mock_platform, *map[mock_platform]


@pytest.fixture()
@pytest.fixture
def platform_apps(mock_platform):
map = {
"Linux": "/usr/bin/ExampleApp",
Expand All @@ -49,7 +49,7 @@ def platform_apps(mock_platform):
return mock_platform, map[mock_platform]


@pytest.mark.asyncio()
@pytest.mark.asyncio
async def test_get_compat_path(mocker: MockFixture, platform_paths):
platform, in_path, expect_path = platform_paths
mock_proc = mocker.AsyncMock()
Expand Down
3 changes: 2 additions & 1 deletion tests/test_pydngconverter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PyDNGConverter tests."""

from __future__ import annotations

from pathlib import Path
Expand All @@ -21,7 +22,7 @@
]


@pytest.fixture()
@pytest.fixture
def with_mock_source(tmp_path):
root_p = tmp_path / "mocksource"
root_p.mkdir(exist_ok=True)
Expand Down
Loading