diff --git a/hooks/pre-commit b/hooks/pre-commit old mode 100755 new mode 100644 index 21d8ee91c..f26347055 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -12,7 +12,7 @@ fi echo "Begin linting step using yapf formatting" linterrorfound=0 -for stagedfile in $(git diff --name-only --cached | grep *.py) +for stagedfile in $(git diff --name-only --cached | grep ".*\.py") do yapf --diff --style .style.yapf $stagedfile ret=$?