From: Petr Špaček Date: Mon, 28 Jun 2021 14:17:01 +0000 (+0200) Subject: Use more liberal pylint for tests X-Git-Tag: v9.17.21~38^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8ce4759c5cfd13e7df591b4cf729bb27ba6300fe;p=thirdparty%2Fbind9.git Use more liberal pylint for tests Ignore wrong-import-position to enable use of pytest.importorskip. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d29d5dbcd3..d3e5616e5cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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