From f7698271bd0a5ed18be7127ff1e994dc36a90dcc Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Tue, 25 May 2021 18:42:02 -0300 Subject: [PATCH] Enable pylint in utils/lint_check.sh The script utils/lint_check.sh should be used before push commits to the repository. This change enables pylint to be executed by the script. --- utils/lint_check.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/lint_check.sh b/utils/lint_check.sh index eba2c1d5..d7bfadc3 100755 --- a/utils/lint_check.sh +++ b/utils/lint_check.sh @@ -4,6 +4,7 @@ topdir="`dirname $(dirname $0)`" flake8 . pydocstyle . +pylint plugins ANSIBLE_LIBRARY=${ANSIBLE_LIBRARY:-"${topdir}/plugins/modules"} ANSIBLE_MODULE_UTILS=${ANSIBLE_MODULE_UTILS:-"${topdir}/plugins/module_utils"} @@ -24,5 +25,5 @@ done for dir in "${yaml_dirs[@]}" do - find "${dir}" -type f -name "*.yml" | xargs yamllint + find "${dir}" -type f -name "*.yml" | xargs yamllint done -- GitLab