Skip to content

Commit

Permalink
Update the block of ansible-lint
Browse files Browse the repository at this point in the history
This is proposed by Martin. For details, please refer to:
#2666 (comment)

Signed-off-by: Vector Li <huanli@redhat.com>
  • Loading branch information
idorax committed Feb 5, 2024
1 parent 843a4d4 commit d441129
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,21 @@ repos:
files: ^tmt/schemas/.*\.yaml

- repo: https://github.com/ansible-community/ansible-lint.git
rev: v5.3.2
rev: v6.22.2
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
# New Ansible breaks older ansible-lint, stick to the old version for now
additional_dependencies:
- 'ansible-core<2.15'
args:
- ansible/
- examples/ansible/
- examples/redis/ansible/
- tests/finish/ansible/data/
- tests/run/worktree/data/ansible/
- tmt/steps/prepare/feature/
- --profile=production
- --warn-list=fqcn[action-core]
- --exclude=examples/redis/ansible/tasks/redis.yml
# redis.yml example requires posix module to be installed
# in order to be parsed by ansible-lint

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.11
Expand Down

0 comments on commit d441129

Please sign in to comment.