From 1cf089e844c48dbe58a8d0ef7a80b8bffe38c170 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Tue, 18 May 2021 14:08:28 +0200 Subject: [PATCH] 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. --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ff7640d2..671356af 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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$ -- GitLab