Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#292)
Browse files Browse the repository at this point in the history
* chore: pre-commit autoupdate

updates:
- [github.com/tox-dev/tox-ini-fmt: 1.4.1 → 1.5.0](tox-dev/tox-ini-fmt@1.4.1...1.5.0)
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4)
- [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0)
- [github.com/streetsidesoftware/cspell-cli: v8.17.0 → v8.17.2](streetsidesoftware/cspell-cli@v8.17.0...v8.17.2)
- [github.com/jsh9/pydoclint: 0.5.14 → 0.6.0](jsh9/pydoclint@0.5.14...0.6.0)
- [github.com/pycqa/pylint.git: v3.3.3 → v3.3.4](https://github.com/pycqa/pylint.git/compare/v3.3.3...v3.3.4)

* chore: auto fixes from pre-commit.com hooks

* Fix new ruff rule PT006

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kate Case <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Qalthos authored Feb 26, 2025
1 parent 6b98236 commit 7d7df5b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
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

0 comments on commit 7d7df5b

Please sign in to comment.