add lines number

Signed-off-by: Christophe Lampin <weboob@lampin.net>
This commit is contained in:
Christophe Lampin 2013-07-22 16:11:25 +02:00 committed by Florent
commit 81c1e65092

View file

@ -2,9 +2,9 @@
cd $(dirname $0) cd $(dirname $0)
cd .. 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 -n 'class [^( ]\+:$' ${PYFILES} && exit 3
grep $'\t\|\s$' $PYFILES && exit 4 grep -n $'\t\|\s$' $PYFILES && exit 4
grep '\.setlocale' ${PYFILES} && exit 5 grep -n '\.setlocale' ${PYFILES} && exit 5
FLAKE8="" FLAKE8=""
if which flake8 >/dev/null 2>&1; then if which flake8 >/dev/null 2>&1; then