Added pycodestyle to requirements.txt and pre-commit hook.

This commit is contained in:
Jonathan S. Katz
2019-03-10 11:40:05 -07:00
parent 789550515e
commit 3c3a117b66
2 changed files with 2 additions and 1 deletions

View File

@ -6,3 +6,4 @@ django_markwhat==1.4
requests-oauthlib==0.4.0
cvss==1.9
pytidylib==0.3.2
pycodestyle==2.2.0

View File

@ -22,7 +22,7 @@ if [ "$FILES" != "" ]; then
continue
fi
R=$(git show ":$F" | pep8 -)
R=$(git show ":$F" | pycodestyle -)
if [ "$?" != "0" ]; then
echo "Errors in $F"
echo "$R"