mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-01 15:54:53 +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
|
requests-oauthlib==0.4.0
|
||||||
cvss==1.9
|
cvss==1.9
|
||||||
pytidylib==0.3.2
|
pytidylib==0.3.2
|
||||||
|
pycodestyle==2.2.0
|
||||||
|
@ -22,7 +22,7 @@ if [ "$FILES" != "" ]; then
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
R=$(git show ":$F" | pep8 -)
|
R=$(git show ":$F" | pycodestyle -)
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Errors in $F"
|
echo "Errors in $F"
|
||||||
echo "$R"
|
echo "$R"
|
||||||
|
Reference in New Issue
Block a user