From d44a8bede460763d829aee8fdc45db4fbe020d69 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:08 +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/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) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5dc311ab..aafd41be 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 From 056514e9bd5f02263d3e8ac2c91bb7bef1e420a6 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:47 +0000 Subject: [PATCH 2/2] chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- test/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.