From ee4f420c1a84e10d1f039e8d3918a6cb582776cf Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 26 Apr 2017 00:58:56 +0200 Subject: Make configure script pylint2 complient --- src/scripts/ci/travis/lint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/scripts/ci/travis/lint.sh') diff --git a/src/scripts/ci/travis/lint.sh b/src/scripts/ci/travis/lint.sh index e7335a0a1..16d7e5fc0 100755 --- a/src/scripts/ci/travis/lint.sh +++ b/src/scripts/ci/travis/lint.sh @@ -2,12 +2,16 @@ set -ev which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available +# Disabled rules in Python 2 only +# superfluous-parens: needed for print statements +# too-many-locals: variable counting differs from pylint3 + echo "travis_fold:start:pylint_configure" python3 -m pylint configure.py -python2 -m pylint configure.py +python2 -m pylint --disable=superfluous-parens,too-many-locals configure.py echo "travis_fold:end:pylint_configure" echo "travis_fold:start:pylint_botanpy" python3 -m pylint src/python/botan2.py || true -python2 -m pylint src/python/botan2.py || true +python2 -m pylint --disable=superfluous-parens,too-many-locals src/python/botan2.py || true echo "travis_fold:end:pylint_botanpy" -- cgit v1.2.3