diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 080406e..0b6ba77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,12 @@ repos: - - repo: https://github.com/ansible-community/ansible-lint.git - rev: v6.8.0 # put latest release tag from https://github.com/ansible-community/ansible-lint/releases/ + - repo: local hooks: - id: ansible-lint name: 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 \ No newline at end of file