Skip to content

Commit

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

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
- [github.com/tox-dev/tox-ini-fmt: 1.3.1 → 1.4.1](tox-dev/tox-ini-fmt@1.3.1...1.4.1)
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.9](astral-sh/ruff-pre-commit@v0.6.3...v0.6.9)
- [github.com/jsh9/pydoclint: 0.5.6 → 0.5.9](jsh9/pydoclint@0.5.6...0.5.9)
- [github.com/pycqa/pylint.git: v3.2.7 → v3.3.1](https://github.com/pycqa/pylint.git/compare/v3.2.7...v3.3.1)

* Fix pylint failures

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: shatakshiiii <shatakshimishra01@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and shatakshiiii authored Oct 11, 2024
1 parent 8eb5bcc commit 71782dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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_creator/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def to_lines(
class Output:
"""Output functionality."""

def __init__( # noqa: PLR0913
def __init__( # noqa: PLR0913 # pylint: disable=too-many-positional-arguments
self: Output,
log_file: str,
log_level: str,
Expand Down
4 changes: 2 additions & 2 deletions tests/units/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def test_name_in_devfile_collection(cli_args_collection: Config) -> None:
init = Init(cli_args_collection)
unique_name = init.unique_name_in_devfile()
assert unique_name.startswith("testns.testname-")
uuid_part = unique_name.split("-")[-1] # Extract the UUID part
uuid_part = unique_name.rsplit("-", maxsplit=1)[-1] # Extract the UUID part
assert len(uuid_part) == UUID_LENGTH, "UUID part length mismatch"


Expand All @@ -428,5 +428,5 @@ def test_name_in_devfile_playbook(
init = Init(cli_args_playbook)
unique_name = init.unique_name_in_devfile()
assert unique_name.startswith("foo.bar-")
uuid_part = unique_name.split("-")[-1] # Extract the UUID part
uuid_part = unique_name.rsplit("-", maxsplit=1)[-1] # Extract the UUID part
assert len(uuid_part) == UUID_LENGTH, "UUID part length mismatch"

0 comments on commit 71782dc

Please sign in to comment.