]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use more liberal pylint for tests
authorPetr Špaček <pspacek@isc.org>
Mon, 28 Jun 2021 14:17:01 +0000 (16:17 +0200)
committerPetr Špaček <pspacek@isc.org>
Tue, 9 Nov 2021 12:13:56 +0000 (13:13 +0100)
Ignore wrong-import-position to enable use of pytest.importorskip.

(cherry picked from commit 8ce4759c5cfd13e7df591b4cf729bb27ba6300fe)

.gitlab-ci.yml

index b768ee695a74cca141d028a82dc3ba6879db215d..3107c4965f923c67f90349543d34ca5d13e8e828 100644 (file)
@@ -526,7 +526,9 @@ pylint:
   script:
     - *configure
     - PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/bin/python"
-    - pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py)')
+    - pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py|^bin/tests/system/)')
+      # 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')
 
 tarball-create:
   stage: precheck