Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#675)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.7...v0.6.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Aug 20, 2024
1 parent 53e7f96 commit 11c112b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ repos:
# - poetry.lock: auto-generated file
exclude: (ideas/|resources/|tests/|poetry.lock)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [--fix]
Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from responses import RequestsMock


@pytest.fixture()
@pytest.fixture
def project_default(tmp_path):
"""Project with the default Nitpick style."""
from nitpick.constants import NITPICK_STYLE_TOML
Expand All @@ -34,7 +34,7 @@ def project_default(tmp_path):
)


@pytest.fixture()
@pytest.fixture
def project_remote(request, tmp_path):
"""Project with a remote style (loaded from a URL)."""
from tests.helpers import ProjectMock, tomlstring
Expand Down Expand Up @@ -65,7 +65,7 @@ def project_remote(request, tmp_path):
yield project


@pytest.fixture()
@pytest.fixture
def caplog(_caplog): # noqa: F811
"""Override the caplog fixture to make pytest work with loguru.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_missing_style_and_suggest_option(tmp_path: Path) -> None:
)


@pytest.fixture()
@pytest.fixture
def style_dir_with_types(shared_datadir: Path) -> Generator[Path, None, None]:
"""A mocked directory with style files organised into "identify" subdirs."""
with mock.patch("nitpick.style.builtin_resources_root") as mock_builtin_resources_root:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_url_to_posix_path(test_path):
assert _url_to_posix_path(url) == path


@pytest.fixture()
@pytest.fixture
def some_directory(tmp_path: Path, request) -> Generator[Path, None, None]:
"""Create some directory with some files."""
project_dir = tmp_path / "project"
Expand Down

0 comments on commit 11c112b

Please sign in to comment.