diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6873251..59a7f70 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,12 +47,12 @@ repos: - id: toml-sort-fix - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.4.1 + rev: 1.5.0 hooks: - id: tox-ini-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.4 hooks: - id: ruff args: @@ -63,18 +63,18 @@ repos: types_or: [python, pyi] - repo: https://github.com/psf/black # must be after ruff - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.17.0 + rev: v8.17.2 hooks: - id: cspell name: Spell check with cspell - repo: https://github.com/jsh9/pydoclint - rev: "0.5.14" + rev: "0.6.0" hooks: - id: pydoclint # This allows automatic reduction of the baseline file when needed. @@ -82,7 +82,7 @@ repos: pass_filenames: false - repo: https://github.com/pycqa/pylint.git - rev: v3.3.3 + rev: v3.3.4 hooks: - id: pylint args: diff --git a/src/ansible_dev_environment/subcommands/checker.py b/src/ansible_dev_environment/subcommands/checker.py index 71c493f..c91cfc2 100644 --- a/src/ansible_dev_environment/subcommands/checker.py +++ b/src/ansible_dev_environment/subcommands/checker.py @@ -76,8 +76,7 @@ def _collection_deps(self) -> None: # noqa: C901, PLR0912, PLR0915 for dep, version in deps.items(): if not isinstance(version, str): err = ( - f"Collection {collection_name} has malformed" - f" dependency version for {dep}." + f"Collection {collection_name} has malformed dependency version for {dep}." ) self._output.error(err) continue diff --git a/tests/integration/test_basic.py b/tests/integration/test_basic.py index b1c9259..ff9b79e 100644 --- a/tests/integration/test_basic.py +++ b/tests/integration/test_basic.py @@ -35,8 +35,7 @@ def test_venv( verbosity=0, ) command = ( - "git clone https://github.com/ansible-collections/cisco.nxos.git" - f" {tmp_path/ 'cisco.nxos'}" + f"git clone https://github.com/ansible-collections/cisco.nxos.git {tmp_path / 'cisco.nxos'}" ) subprocess_run( command=command, diff --git a/tests/unit/test_output.py b/tests/unit/test_output.py index 347fddc..4d53329 100644 --- a/tests/unit/test_output.py +++ b/tests/unit/test_output.py @@ -15,7 +15,10 @@ from pathlib import Path -@pytest.mark.parametrize(argnames="width, expected", argvalues=((79, 79), (131, 81), (133, 132))) +@pytest.mark.parametrize( + argnames=("width", "expected"), + argvalues=((79, 79), (131, 81), (133, 132)), +) def test_console_width(width: int, expected: int, monkeypatch: pytest.MonkeyPatch) -> None: """Test the console width function."""