From 264a2785eb278406a5b93b9c5a8a1979eee5cc11 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:55:34 +0000 Subject: [PATCH] chore: pre-commit autoupdate (#415) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: pre-commit autoupdate updates: - [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/psf/black: 24.8.0 → 24.10.0](https://github.com/psf/black/compare/24.8.0...24.10.0) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.13.0) * chore: 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> Co-authored-by: Sorin Sbarnea --- .pre-commit-config.yaml | 6 +++--- test/conftest.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aedc0894..0d0b58b2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ exclude: | )$ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.9" + rev: "v0.7.2" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -68,12 +68,12 @@ repos: types: [file, yaml] entry: yamllint --strict - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy # empty args needed in order to match mypy cli behavior diff --git a/test/conftest.py b/test/conftest.py index 59ea315f..4ce004e1 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -14,7 +14,7 @@ from ansible_compat.runtime import Runtime -@pytest.fixture() +@pytest.fixture # pylint: disable=unused-argument def runtime(scope: str = "session") -> Generator[Runtime, None, None]: # noqa: ARG001 """Isolated runtime fixture.""" @@ -23,7 +23,7 @@ def runtime(scope: str = "session") -> Generator[Runtime, None, None]: # noqa: instance.clean() -@pytest.fixture() +@pytest.fixture # pylint: disable=unused-argument def runtime_tmp( tmp_path: pathlib.Path, @@ -44,7 +44,7 @@ def query_pkg_version(pkg: str) -> str: return importlib.metadata.version(pkg) -@pytest.fixture() +@pytest.fixture def pkg_version() -> Callable[[str], str]: """Get the version of a current installed package.