Skip to content
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
2 changes: 1 addition & 1 deletion .config/requirements-lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ rpds-py==0.30.0
# via
# jsonschema
# referencing
ruamel-yaml==0.18.16
ruamel-yaml==0.18.17
# via ansible-lint
subprocess-tee==0.4.2
# via
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
hooks:
- id: check-useless-excludes
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.17
rev: 0.9.18
hooks:
- id: uv-sync
- id: uv-lock
Expand Down Expand Up @@ -58,14 +58,14 @@ repos:
- "-o"
- ".config/requirements-lock.txt"
- repo: https://github.com/biomejs/pre-commit
rev: "v2.3.8"
rev: "v2.3.10"
hooks:
- id: biome-check
name: biome
alias: biome
args: [--unsafe]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.3.3
rev: v9.4.0
hooks:
- id: cspell
entry: bash
Expand All @@ -79,7 +79,7 @@ repos:
]
name: cspell + remove unused and sort dictionary
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.35.0
rev: 0.36.0
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/pre-commit-hooks.git
Expand Down Expand Up @@ -146,22 +146,22 @@ repos:
entry: yamllint --strict

- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.7.7
rev: v0.7.11
hooks:
- id: tombi-format
alias: toml
- id: tombi-lint
alias: toml

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.9
rev: v0.14.10
hooks:
- id: ruff-format
alias: ruff
- id: ruff-check
alias: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.0
rev: v1.19.1
hooks:
- id: mypy
# "." and pass_files are used to make pre-commit mypy behave the same as standalone mypy
Expand Down
6 changes: 3 additions & 3 deletions src/ansiblelint/rules/var_naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ def matchtask(
# If the task uses the 'set_fact' module
if ansible_module == "set_fact":
for key in filter(
lambda x: isinstance(x, str)
and not x.startswith("__")
and x != "cacheable",
lambda x: (
isinstance(x, str) and not x.startswith("__") and x != "cacheable"
),
task["action"].keys(),
):
match_error = self.get_var_naming_matcherror(
Expand Down
Loading