From 305f54c0d1fa071c9a33e4da7ac2f4f4032a9927 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:49:32 +0000 Subject: [PATCH 1/2] chore: pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 24.8.0 → 24.10.0](https://github.com/psf/black/compare/24.8.0...24.10.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.7.2) - [github.com/streetsidesoftware/cspell-cli: v8.13.3 → v8.15.2](https://github.com/streetsidesoftware/cspell-cli/compare/v8.13.3...v8.15.2) - [github.com/pre-commit/mirrors-mypy.git: v1.11.2 → v1.13.0](https://github.com/pre-commit/mirrors-mypy.git/compare/v1.11.2...v1.13.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d145527..8ec5e77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,7 +44,7 @@ repos: - prettier-plugin-sort-json - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black @@ -59,14 +59,14 @@ repos: - id: tox-ini-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.7.2 hooks: - id: ruff args: - --exit-non-zero-on-fix - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.13.3 + rev: v8.15.2 hooks: - id: cspell name: Spell check with cspell @@ -93,7 +93,7 @@ repos: - tox - repo: https://github.com/pre-commit/mirrors-mypy.git - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: From 8c08fdc9050ed81a153baf06d34018ba8d5f93c1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:50:51 +0000 Subject: [PATCH 2/2] chore: auto fixes from pre-commit.com hooks --- tests/conftest.py | 6 +++--- tests/unit/conftest.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index e09cb93..fee8c1b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -47,7 +47,7 @@ REQS_FILE_NAME = "requirements.yml" -@pytest.fixture() +@pytest.fixture def galaxy_cache() -> Path: """Return the galaxy cache directory. @@ -145,7 +145,7 @@ def fixture_session_dir() -> Generator[Path, None, None]: shutil.rmtree(temp_dir) -@pytest.fixture() +@pytest.fixture def installable_local_collection(tmp_path: Path) -> Path: """Provide a local collection that can be installed. @@ -218,7 +218,7 @@ def session_venv(session_dir: Path, monkey_session: pytest.MonkeyPatch) -> Confi return cli.config -@pytest.fixture() +@pytest.fixture def function_venv(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Config: """Create a temporary venv for the session. diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 56744a9..563e6bd 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -14,7 +14,7 @@ from pathlib import Path -@pytest.fixture() +@pytest.fixture def output(tmp_path: Path) -> Output: """Create an Output class object as fixture.