diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-05-01 12:57:10 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-05-01 12:57:10 +0300 |
commit | e9344ac5f34c6cbbd6a5f19c4770062e24783b10 (patch) | |
tree | b54e497f6fe6d691b32cc1d92cb01cfae51dfd2d | |
parent | 9c7bf04a8e00fa9813803aa51a7806c3b732a275 (diff) | |
download | ttystatus-e9344ac5f34c6cbbd6a5f19c4770062e24783b10.tar.gz |
Only run pylint if sufficiently new
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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] |