]> 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 11:03:21 +0000 (13:03 +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.

.gitlab-ci.yml

index d2417d6aa26995bd34515348119304d48b6fea22..ed29d303281d067e841e8c576fa47f2622752b3c 100644 (file)
@@ -569,7 +569,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')