mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00
Added pycodestyle to requirements.txt and pre-commit hook.
This commit is contained in:
@ -6,3 +6,4 @@ django_markwhat==1.4
|
||||
requests-oauthlib==0.4.0
|
||||
cvss==1.9
|
||||
pytidylib==0.3.2
|
||||
pycodestyle==2.2.0
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user