Skip to content

Commit 21c4f45

Browse files
chore: pre-commit autoupdate (#4574)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kate Case <[email protected]>
1 parent a342b7e commit 21c4f45

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ repos:
6767
args: [--relative, --no-progress, --no-summary]
6868
name: Spell check with cspell
6969
- repo: https://github.com/python-jsonschema/check-jsonschema
70-
rev: 0.31.3
70+
rev: 0.32.1
7171
hooks:
7272
- id: check-github-workflows
7373
- repo: https://github.com/pre-commit/pre-commit-hooks.git
@@ -117,7 +117,7 @@ repos:
117117
additional_dependencies:
118118
- tomli
119119
- repo: https://github.com/adrienverge/yamllint.git
120-
rev: v1.36.2
120+
rev: v1.37.0
121121
hooks:
122122
- id: yamllint
123123
exclude: >
@@ -144,7 +144,7 @@ repos:
144144
- id: tox-ini-fmt
145145

146146
- repo: https://github.com/astral-sh/ruff-pre-commit
147-
rev: v0.11.0
147+
rev: v0.11.4
148148
hooks:
149149
- id: ruff
150150
args:

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def pytest_configure(config: pytest.Config) -> None:
3939
# we need to be sure that we have the requirements installed as some tests
4040
# might depend on these. This approach is compatible with GHA caching.
4141
try:
42-
subprocess.check_output( # noqa: S603
42+
subprocess.check_output(
4343
["./tools/install-reqs.sh"],
4444
stderr=subprocess.PIPE,
4545
text=True,

src/ansiblelint/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,11 @@ def append_playbook_path(loc: str, playbook_path: list[str]) -> None:
523523
for loc in self.app.runtime.config.collections_paths:
524524
append_playbook_path(
525525
loc,
526-
playbook_path[:-1] + [f"{playbook_path[-1]}.yml"],
526+
[*playbook_path[:-1], f"{playbook_path[-1]}.yml"],
527527
)
528528
append_playbook_path(
529529
loc,
530-
playbook_path[:-1] + [f"{playbook_path[-1]}.yaml"],
530+
[*playbook_path[:-1], f"{playbook_path[-1]}.yaml"],
531531
)
532532
else:
533533
possible_paths.append(lintable.path.parent / v)

tools/generate_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ansiblelint.rules import RulesCollection, TransformMixin
1212

1313
if __name__ == "__main__":
14-
subprocess.run( # noqa: S603
14+
subprocess.run(
1515
["ansible-lint", "--list-rules"], # noqa: S607
1616
check=True,
1717
stdout=subprocess.DEVNULL,

0 commit comments

Comments
 (0)