Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pre-commit autoupdate #292

Merged
merged 3 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -63,26 +63,26 @@ 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.
entry: sh -ec "pydoclint . && pydoclint --generate-baseline=1 ."
pass_filenames: false

- repo: https://github.com/pycqa/pylint.git
rev: v3.3.3
rev: v3.3.4
hooks:
- id: pylint
args:
Expand Down
3 changes: 1 addition & 2 deletions src/ansible_dev_environment/subcommands/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion tests/unit/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down