ansible_doc_test pre commit: Set ANSIBLE_LIBRARY to test current repo

It is needed to set ANSIBLE_LIBRARY to make sure that the current repo is
tested.
This commit is contained in:
Thomas Woerner
2021-05-18 14:08:28 +02:00
parent 74720c5a3b
commit 1cf089e844

View File

@@ -25,7 +25,7 @@ repos:
hooks:
- id: ansible-doc-test
name: Verify Ansible roles and module documentation.
language: script
entry: utils/ansible-doc-test
language: python
entry: env ANSIBLE_LIBRARY=./plugins/modules utils/ansible-doc-test
# args: ['-v', 'roles', 'plugins']
files: ^.*.py$