[weboob] [PATCH 2/6] [pyflasks] add lines number

Kitof git at kitof.net
Mon Jul 22 16:11:25 CEST 2013


From: Christophe Lampin <weboob at lampin.net>


Signed-off-by: Christophe Lampin <weboob at lampin.net>
---
 tools/pyflakes.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh
index 3ce028e..795c975 100755
--- a/tools/pyflakes.sh
+++ b/tools/pyflakes.sh
@@ -2,9 +2,9 @@
 cd $(dirname $0)
 cd ..
 PYFILES=$(git ls-files|grep '^scripts\|\.py$'|grep -v boilerplate_data|tr '\n' ' ')
-grep 'class [^( ]\+:$' ${PYFILES} && exit 3
-grep $'\t\|\s$' $PYFILES && exit 4
-grep '\.setlocale' ${PYFILES} && exit 5
+grep -n 'class [^( ]\+:$' ${PYFILES} && exit 3
+grep -n $'\t\|\s$' $PYFILES && exit 4
+grep -n '\.setlocale' ${PYFILES} && exit 5
 
 FLAKE8=""
 if which flake8 >/dev/null 2>&1; then
-- 
1.8.1.4




More information about the weboob mailing list