Skip to content

Commit

Permalink
Build(git): Simplify regular expressions for compileall
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
phdru committed Jan 23, 2024
1 parent 8d1f4a7 commit 371f803
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions devscripts/git-hooks/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ "$new_branch" = 1 ]; then
rm -rf docs/_build/html docs/html
fi &&

python -m compileall -q -x '\.tox/.+' . &&
python -O -m compileall -q -x '\.tox/.+' .
python -m compileall -q -x '\.tox/' . &&
python -O -m compileall -q -x '\.tox/' .

exit 0
4 changes: 2 additions & 2 deletions devscripts/git-hooks/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# post-merge hook that compiles python files to byte code

python -m compileall -q -x '\.tox/.+' . &&
python -O -m compileall -q -x '\.tox/.+' .
python -m compileall -q -x '\.tox/' . &&
python -O -m compileall -q -x '\.tox/' .

exit 0
4 changes: 2 additions & 2 deletions devscripts/git-hooks/post-rewrite
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# post-rewrite hook that compiles python files to byte code

python -m compileall -q -x '\.tox/.+' . &&
python -O -m compileall -q -x '\.tox/.+' .
python -m compileall -q -x '\.tox/' . &&
python -O -m compileall -q -x '\.tox/' .

exit 0

0 comments on commit 371f803

Please sign in to comment.