fix pre-commit install when subdirectories don't have a config
parent
d6f6e024b3
commit
a958213ec7
|
@ -45,6 +45,7 @@ pipenv install --dev --deploy --clear
|
||||||
pyenv rehash
|
pyenv rehash
|
||||||
|
|
||||||
echo "pre-commit hooks install..."
|
echo "pre-commit hooks install..."
|
||||||
|
shopt -s nullglob
|
||||||
for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do
|
for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do
|
||||||
cd $DIR/$(dirname $f)
|
cd $DIR/$(dirname $f)
|
||||||
if [ -e ".git" ]; then
|
if [ -e ".git" ]; then
|
||||||
|
|
Loading…
Reference in New Issue