Skip to content

chore: pre-commit autoupdate #256

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

Merged
merged 2 commits into from
Oct 31, 2024
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
Expand Down Expand Up @@ -54,12 +54,12 @@ repos:
- id: toml-sort-fix

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.1
rev: 1.4.1
hooks:
- id: tox-ini-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.6.9
hooks:
- id: ruff
args:
Expand All @@ -72,15 +72,15 @@ repos:
name: Spell check with cspell

- repo: https://github.com/jsh9/pydoclint
rev: "0.5.6"
rev: "0.5.9"
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.2.7
rev: v3.3.1
hooks:
- id: pylint
args:
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_dev_environment/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def to_lines(
class Output:
"""Output functionality."""

def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self: Output,
log_file: str,
log_level: str,
Expand Down
4 changes: 2 additions & 2 deletions src/ansible_dev_environment/subcommands/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _install_galaxy_collections(
collections: The collection objects.

Raises:
SystemExit: If the collection installation fails.
SystemError: If the collection installation fails.
"""
collections_str = " ".join(
[f"'{collection.original}'" for collection in collections],
Expand Down Expand Up @@ -373,7 +373,7 @@ def _install_local_collection(

Raises:
RuntimeError: If tarball is not found or if more than one tarball is found.
SystemExit: If the collection installation fails.
SystemError: If the collection installation fails.
"""
msg = f"Installing local collection from: {collection.build_dir}"
self._output.info(msg)
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_dev_environment/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def is_scalar(obj: JSONVal) -> bool:
"""
return isinstance(obj, str | int | float | bool) or obj is None

def _print_tree( # noqa: C901, PLR0912
def _print_tree( # noqa: C901, PLR0912 # pylint: disable=too-many-positional-arguments
self: Tree,
obj: JSONVal,
is_last: bool, # noqa: FBT001
Expand Down
2 changes: 1 addition & 1 deletion src/ansible_dev_environment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Ansi:
GREY = "\x1b[90m"


def subprocess_run( # noqa: PLR0913
def subprocess_run( # noqa: PLR0913 # pylint: disable=too-many-positional-arguments
command: str,
verbose: int,
msg: str,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def test_collection_pre_install(

@pytest.mark.parametrize("first", (True, False), ids=["editable", "not_editable"])
@pytest.mark.parametrize("second", (True, False), ids=["editable", "not_editable"])
def test_reinstall_local_collection( # noqa: PLR0913
def test_reinstall_local_collection( # noqa: PLR0913 # pylint: disable=too-many-positional-arguments
first: bool, # noqa: FBT001
second: bool, # noqa: FBT001
tmp_path: Path,
Expand Down