no git in CI

pull/23956/head
Adeeb Shihadeh 2022-03-13 16:37:53 -07:00
parent 8252134e62
commit d6f6e024b3
1 changed files with 3 additions and 1 deletions

View File

@ -47,5 +47,7 @@ pyenv rehash
echo "pre-commit hooks install..."
for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do
cd $DIR/$(dirname $f)
$RUN pre-commit install
if [ -e ".git" ]; then
$RUN pre-commit install
fi
done