From 162be86a7c8e548836726b10f556a8bfee794c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Mon, 22 Jul 2024 16:29:53 +0200 Subject: [PATCH] Skip pylint checks for contrib directory The files in contrib/ directory shouldn't be subject to our pylint check. They can come from external sources and we don't subject these to the same standards as the rest of the BIND9 code / scripts. (cherry picked from commit 7cbb0526497d706d63aa91dd845c735600339c26) --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 60a3aaf3e4..25541bcf43 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -576,7 +576,7 @@ pylint: variables: PYTHONPATH: "${CI_PROJECT_DIR}/bin/tests/system" script: - - pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py|^bin/tests/system/)') + - pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py|^bin/tests/system/|^contrib/)') # Ignore Pylint wrong-import-position error in system test to enable use of pytest.importorskip - pylint --rcfile $CI_PROJECT_DIR/.pylintrc --disable=wrong-import-position $(git ls-files 'bin/tests/system/*.py' | grep -vE 'ans\.py')