Skip to content

Commit

Permalink
Exclude auto-generated pysnmp MIBs from flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin authored and John Hixson committed Sep 27, 2017
1 parent 0c07104 commit 8dfceb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis/flake8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ set -x
# because of use case sys.path.append('..'); import <module>

tmpafter=$(mktemp)
find gui src -name \*.py -exec flake8 --ignore=E402,E501 {} + | grep -v "migrations/" > $tmpafter
find gui src -name \*.py -exec flake8 --ignore=E402,E501 {} + | egrep -v "migrations/|usr/local/share/pysnmp/mibs/" > $tmpafter
num_errors_after=`cat $tmpafter | wc -l`
echo $num_errors_after

git checkout HEAD~

tmpbefore=$(mktemp)
find gui src -name \*.py -exec flake8 --ignore=E402,E501 {} + | grep -v "migrations/" > $tmpbefore
find gui src -name \*.py -exec flake8 --ignore=E402,E501 {} + | egrep -v "migrations/|usr/local/share/pysnmp/mibs/" > $tmpbefore
num_errors_before=`cat $tmpbefore | wc -l`
echo $num_errors_before

Expand Down

0 comments on commit 8dfceb1

Please sign in to comment.