Running tests before commit

.git/hooks/pre-commit:

#!/bin/sh
echo “running tests before git commit”
. ./pre-tests.sh

pre-tests.sh:

#!/bin/sh

/Users/ravis/proj/brf/venv/bin/python manage.py test

if [ $? -ne 0 ]; then
 echo “tests failed”
 exit 1
fi