if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then
git clean -d -f -q
else
- python2.7 -m compileall -q . &&
- python2.7 -O -m compileall -q .
+ python -m compileall -q -x '\.tox/.+' . &&
+ python -O -m compileall -q -x '\.tox/.+' .
fi
fi
new_branch="$3"
if [ "$new_branch" = 1 ]; then
- python2.7 -m compileall -q . &&
- python2.7 -O -m compileall -q .
+ python -m compileall -q -x '\.tox/.+' . &&
+ python -O -m compileall -q -x '\.tox/.+' .
fi
exit 0
# post-checkout hook that compiles python files to byte code
-python2.7 -m compileall -q . &&
-python2.7 -O -m compileall -q .
+python -m compileall -q -x '\.tox/.+' . &&
+python -O -m compileall -q -x '\.tox/.+' .
exit 0
# post-merge hook that compiles python files to byte code
-python2.7 -m compileall -q . &&
-python2.7 -O -m compileall -q .
+python -m compileall -q -x '\.tox/.+' . &&
+python -O -m compileall -q -x '\.tox/.+' .
exit 0
# post-rewrite hook that compiles python files to byte code
-python2.7 -m compileall -q . &&
-python2.7 -O -m compileall -q .
+python -m compileall -q -x '\.tox/.+' . &&
+python -O -m compileall -q -x '\.tox/.+' .
exit 0