Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
666 B

#!/bin/bash
# Check if there's some debug breakpoint in codebase
me=`basename "$0"`
stmts=`grep --exclude=$me -r -l "ipdb.set_trace()" * | wc -l`
if [ $stmts != '0' ]
then
echo "=================================================================="
echo "ERROR: ipdb.set_trace() call in codebase! Remove, please."
grep --exclude=$me -r -n "ipdb.set_trace()" *
echo "=================================================================="
fi
# QA checks: run this before every commit
./manage.py check
flake8 --exclude='ipython_log.py*,migrations,templates' .
isort --recursive --check-only --skip='migrations' --skip='templates' --skip='ipython_log.py' .