pyflakes.sh: Ban more stuff
This commit is contained in:
parent
a6ad7e83ff
commit
1025f71eb9
1 changed files with 3 additions and 1 deletions
|
|
@ -4,7 +4,9 @@ cd ..
|
|||
PYFILES=$(git ls-files|grep '^scripts\|\.py$'|grep -v boilerplate_data|tr '\n' ' ')
|
||||
grep -n 'class [^( ]\+:$' ${PYFILES} && exit 3
|
||||
grep -n $'\t\|\s$' $PYFILES && exit 4
|
||||
grep -n '\.setlocale' ${PYFILES} && exit 5
|
||||
grep -Fn '.setlocale' ${PYFILES} && exit 5
|
||||
grep -Fn '__future__ import with_statement' ${PYFILES} && exit 6
|
||||
grep -nE 'except [[:alnum:] ]+,[[:alnum:] ]+' ${PYFILES} && exit 7
|
||||
|
||||
FLAKE8=""
|
||||
if which flake8 >/dev/null 2>&1; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue