diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-02-19 19:16:30 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-02-19 19:16:30 +0200 |
commit | a5bd847ccfe517b8e1c0e5e5f93ac5a570203858 (patch) | |
tree | 580d07aea3a12153ca33b45db0f2cf528b9b71da | |
parent | 56b0d46084644594024a0e3664ed6098cbb91624 (diff) | |
download | ick-a5bd847ccfe517b8e1c0e5e5f93ac5a570203858.tar.gz |
Only run pylint if new enough
-rwxr-xr-x | check | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -28,7 +28,14 @@ python -m CoverageTestRunner icklib --ignore-missing-from without-tests rm .coverage pep8 ick icklib/*.py -pylint --rcfile=pylint.conf ick icklib + +# We only run pylint if it's new enough. We assume check is being run +# on Debian, to be able to use dpkg --compare-versions. +v="$(pylint --version 2>/dev/null | awk '/^pylint/ { print $2 }' | tr -d ,)" +if dpkg --compare-versions "$v" ge 1.3.1 +then + pylint --rcfile=pylint.conf ick icklib +fi if env | grep '^ICK_UNSTABLE_TEST_TARGET' then |