change pre-commit repo to local

This commit is contained in:
Oli
2022-10-21 17:42:26 +00:00
parent 4844a65052
commit ace1809d08

View File

@@ -1,8 +1,12 @@
repos: repos:
- repo: https://github.com/ansible-community/ansible-lint.git - repo: local
rev: v6.8.0 # put latest release tag from https://github.com/ansible-community/ansible-lint/releases/
hooks: hooks:
- id: ansible-lint - id: ansible-lint
name: Ansible-lint name: Ansible-lint
description: This hook runs ansible-lint. description: This hook runs ansible-lint.
entry: ansible-lint --nocolor entry: ansible-lint -v --nocolor
language: python
# do not pass files to ansible-lint, see:
# https://github.com/ansible-community/ansible-lint/issues/611
pass_filenames: false
always_run: true