Quick lint script for changed files (#2941)

This commit is contained in:
Johann Kellerman 2016-08-23 05:52:31 +02:00 committed by Paulus Schoutsen
parent dfca2476bd
commit 0def842231

View File

@ -3,4 +3,21 @@
# NOTE: all testing is now driven through tox. The tox command below
# performs roughly what this test did in the past.
tox -e lint
if [ "$1" == "--changed" ]; then
export files=`git diff upstream/dev --name-only | grep -v requirements_all.txt`
echo "================================================="
echo "FILES CHANGED (git diff upstream/dev --name-only)"
echo "================================================="
echo $files
echo "================"
echo "LINT with flake8"
echo "================"
flake8 --doctests $files
echo "================"
echo "LINT with pylint"
echo "================"
pylint $files
echo
else
tox -e lint
fi