]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Skip pylint checks for contrib directory
authorNicki Křížek <nicki@isc.org>
Mon, 22 Jul 2024 14:29:53 +0000 (16:29 +0200)
committerNicki Křížek <nicki@isc.org>
Mon, 29 Jul 2024 12:49:59 +0000 (14:49 +0200)
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

index 60a3aaf3e4706880cff9df06f92f27554b611e02..25541bcf43d474fdc08aa00a2205b7cc7efc0c6f 100644 (file)
@@ -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')