Ban setlocale
This commit is contained in:
parent
f5739a6de7
commit
216ba19e6a
1 changed files with 1 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ cd ..
|
||||||
PYFILES=$(git ls-files|grep '^scripts\|\.py$'|grep -v boilerplate_data|tr '\n' ' ')
|
PYFILES=$(git ls-files|grep '^scripts\|\.py$'|grep -v boilerplate_data|tr '\n' ' ')
|
||||||
grep 'class [^( ]\+:$' ${PYFILES} && exit 3
|
grep 'class [^( ]\+:$' ${PYFILES} && exit 3
|
||||||
grep $'\t\|\s$' $PYFILES && exit 4
|
grep $'\t\|\s$' $PYFILES && exit 4
|
||||||
|
grep '\.setlocale' ${PYFILES} && exit 5
|
||||||
|
|
||||||
FLAKE8=""
|
FLAKE8=""
|
||||||
if which flake8 >/dev/null 2>&1; then
|
if which flake8 >/dev/null 2>&1; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue