From: Petr Špaček Date: Wed, 23 Jun 2021 08:57:14 +0000 (+0200) Subject: Use more liberal flake8 for tests X-Git-Tag: v9.17.21~38^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a80e641e9085d25892bed17866d38e525cd3588;p=thirdparty%2Fbind9.git Use more liberal flake8 for tests Ignore rule W402 (wrong import order) to enable use of pytest.importorskip. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e8f056441e..6d29d5dbcd3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -481,7 +481,9 @@ flake8: artifacts: true script: - *configure - - flake8 --max-line-length=80 $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py)') + - flake8 --max-line-length=80 $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py|^bin/tests/system/)') + # Ignore Flake8 E402 error (module level import not at top of file) in system test to enable use of pytest.importorskip + - flake8 --max-line-length=80 --extend-ignore=E402 $(git ls-files 'bin/tests/system/*.py' | grep -vE 'ans\.py') pylint: <<: *default_triggering_rules