Use more liberal pylint for tests

Ignore wrong-import-position to enable use of pytest.importorskip.
This commit is contained in:
Petr Špaček 2021-06-28 16:17:01 +02:00
parent 1a80e641e9
commit 8ce4759c5c
No known key found for this signature in database
GPG key ID: ABD587CDF06581AE

View 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