|
|
@ -1,5 +1,4 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" |
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" |
|
|
@ -45,10 +44,8 @@ echo "pip packages install..." |
|
|
|
pipenv install --dev --deploy --clear |
|
|
|
pipenv install --dev --deploy --clear |
|
|
|
pyenv rehash |
|
|
|
pyenv rehash |
|
|
|
|
|
|
|
|
|
|
|
if [ -f "$DIR/.pre-commit-config.yaml" ]; then |
|
|
|
echo "pre-commit hooks install..." |
|
|
|
echo "precommit install ..." |
|
|
|
for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do |
|
|
|
|
|
|
|
cd $DIR/$(dirname $f) |
|
|
|
$RUN pre-commit install |
|
|
|
$RUN pre-commit install |
|
|
|
[ -d "./xx" ] && (cd xx && $RUN pre-commit install) |
|
|
|
done |
|
|
|
[ -d "./notebooks" ] && (cd notebooks && $RUN pre-commit install) |
|
|
|
|
|
|
|
echo "pre-commit hooks installed" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|