diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aedc089..0d0b58b 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 59ea315..4ce004e 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.