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