From 30db047b0a3e2cb0061196dbe801f7b63f1f0889 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Wed, 19 May 2021 11:39:44 +0200 Subject: [PATCH] .pre-commit-config.yaml: Do not set ANSIBLE_LIBRARY for ansible-doc-test With latest Ansible (4.0.0) it is needed to have a complete path for ANSIBLE_LIBRARY. It is not good to hard code this in the .pre-commit-config.yaml file for plugins and also all roles. Instead it will be set in ansible-doc-test as it knows the path for each file that is checked. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 671356af..ec90f12a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,6 @@ repos: - id: ansible-doc-test name: Verify Ansible roles and module documentation. language: python - entry: env ANSIBLE_LIBRARY=./plugins/modules utils/ansible-doc-test + entry: utils/ansible-doc-test # args: ['-v', 'roles', 'plugins'] files: ^.*.py$ -- GitLab