]> 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>
Mon, 8 Nov 2021 12:23:05 +0000 (13:23 +0100)
Ignore wrong-import-position to enable use of pytest.importorskip.

.gitlab-ci.yml

index 6d29d5dbcd3a7e8aaba76db510a5805f9f0e2ee3..d3e5616e5cb0e6ab57c4a699f4f06a40fcb45921 100644 (file)
@@ -495,7 +495,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