fix pre-commit install when subdirectories don't have a config

pull/23956/head
Adeeb Shihadeh 2022-03-13 20:00:23 -07:00
parent d6f6e024b3
commit a958213ec7
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ pipenv install --dev --deploy --clear
pyenv rehash
echo "pre-commit hooks install..."
shopt -s nullglob
for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do
cd $DIR/$(dirname $f)
if [ -e ".git" ]; then