summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-05-01 12:57:10 +0300
committerLars Wirzenius <liw@liw.fi>2015-05-01 12:57:10 +0300
commite9344ac5f34c6cbbd6a5f19c4770062e24783b10 (patch)
treeb54e497f6fe6d691b32cc1d92cb01cfae51dfd2d
parent9c7bf04a8e00fa9813803aa51a7806c3b732a275 (diff)
downloadttystatus-e9344ac5f34c6cbbd6a5f19c4770062e24783b10.tar.gz
Only run pylint if sufficiently new
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 274102f..5743ce0 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,10 @@ check:
python -m CoverageTestRunner --ignore-missing-from=without-tests
rm .coverage
pep8 ttystatus
- pylint --rcfile=pylint.conf ttystatus
+ if command -v pylint && pylint --version | grep '^pylint [1-9]'; \
+ then \
+ PYTHONPATH=. pylint --rcfile=pylint.conf ttystatus; \
+ fi
clean:
rm -f .coverage ttystatus/*.py[co]