aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/travis/lint.sh
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2017-04-26 00:58:56 +0200
committerSimon Warta <[email protected]>2017-04-26 08:43:42 +0200
commitee4f420c1a84e10d1f039e8d3918a6cb582776cf (patch)
treec07c7de7eef703a6ac652888b0a4e6eaa2a4e280 /src/scripts/ci/travis/lint.sh
parentdc5de1f2b85fb7ff976f8d21000776a944a59aaf (diff)
Make configure script pylint2 complient
Diffstat (limited to 'src/scripts/ci/travis/lint.sh')
-rwxr-xr-xsrc/scripts/ci/travis/lint.sh8
1 files changed, 6 insertions, 2 deletions
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"