Skip to content

Commit

Permalink
Add git diff for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
roramirez committed Jun 22, 2018
1 parent 2da4e89 commit edf6845
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion travis.sh
Expand Up @@ -4,7 +4,10 @@
case $RUN in

flake8)
flake8 --ignore=E121,E123,E126,E133,E226,E241,E242,E402,E704 .
# We'll need remote 'git diff' part when all lint error are fixed.
git remote set-branches origin 'develop'
git fetch --depth 1 origin develop
git diff origin/develop | flake8 --diff --ignore=E121,E123,E126,E133,E226,E241,E242,E402,E704 .
;;
tox)
docker run -it --rm --name qpanel-tox -v $(pwd):/code n42org/tox bash -c 'cd /code ; tox'
Expand Down

0 comments on commit edf6845

Please sign in to comment.