chiark / gitweb /
Enable pep8 in pre-commit
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 31 May 2014 21:09:58 +0000 (23:09 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 31 May 2014 21:09:58 +0000 (23:09 +0200)
hooks/pre-commit

index 077aeab07e4aaa2aa96fe7d22e31cac20169ed55..47a32db288c02ffe042c06dadacd0efd037fe9df 100755 (executable)
@@ -30,5 +30,5 @@ else
 fi
 
 # If there are python errors or warnings, print them and fail.
-[ -n "$PYFLAKES" ] && $PYFLAKES $FILES
-#[ -n "$PEP8" ] && $PEP8 --ignore=E123,E501 $FILES
+[ -n $PYFLAKES ] && $PYFLAKES $FILES
+[ -n $PEP8 ] && $PEP8 --ignore=E123,E501 $FILES