mirror of https://github.com/interlegis/sapl.git
Marcio Mazza
7 years ago
1 changed files with 11 additions and 11 deletions
@ -1,17 +1,17 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
# Check if there's some debug breakpoint in codebase |
# Verifica se um breakpoint foi esquecido no código |
||||
me=`basename "$0"` |
me=`basename "$0"` |
||||
stmts=`grep --exclude=$me -r -l "ipdb.set_trace()" * | wc -l` |
busca=`grep --color=auto --exclude=$me --exclude=ipython_log.py* -r -l "pdb.set_trace()" .` |
||||
if [ $stmts != '0' ] |
|
||||
|
if [ ! -z "$busca" ] |
||||
then |
then |
||||
echo "==================================================================" |
echo "============================================================================" |
||||
echo "ERROR: ipdb.set_trace() call in codebase! Remove, please." |
echo "ERROR: pdb.set_trace() encontrado nos seguintes arquivos. Remova, por favor." |
||||
grep --exclude=$me -r -n "ipdb.set_trace()" * |
echo "$busca" |
||||
echo "==================================================================" |
echo "============================================================================" |
||||
fi |
fi |
||||
|
|
||||
# QA checks: run this before every commit |
# ./manage.py check |
||||
./manage.py check |
# flake8 --exclude='ipython_log.py*,migrations,templates' . |
||||
flake8 --exclude='ipython_log.py*,migrations,templates' . |
# isort --recursive --check-only --skip='migrations' --skip='templates' --skip='ipython_log.py' . |
||||
isort --recursive --check-only --skip='migrations' --skip='templates' --skip='ipython_log.py' . |
|
||||
|
Loading…
Reference in new issue