diff --git a/requirements.txt b/requirements.txt index 5defae68..78384ba5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ django_markwhat==1.4 requests-oauthlib==0.4.0 cvss==1.9 pytidylib==0.3.2 +pycodestyle==2.2.0 diff --git a/tools/githook/pre-commit b/tools/githook/pre-commit index 47cc50da..c1b36a0e 100755 --- a/tools/githook/pre-commit +++ b/tools/githook/pre-commit @@ -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"