]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-merge
Exclude .tox/ virtual environments when compiling byte code
[git-scripts.git] / hooks / post-merge
index 3bdcf5efbad5caee325885ee5029bf0c0ab5c55f..633a1d0dd12c2665ea04880e59ce7ffe259fa941 100755 (executable)
@@ -2,7 +2,7 @@
 
 # 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