update_requirements: fix opendbc pre-commit hook installation (#29175)

Force poetry to stay in the same venv when installing pre-commit hooks
pull/29183/head
Kacper Rączy 2 years ago committed by GitHub
parent 2fd6310352
commit 7f1b13923f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      update_requirements.sh

@ -75,9 +75,8 @@ if [ "$(uname)" != "Darwin" ]; then
echo "pre-commit hooks install..." echo "pre-commit hooks install..."
shopt -s nullglob 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) if [ -e "$DIR/$(dirname $f)/.git" ]; then
if [ -e ".git" ]; then $RUN pre-commit install -c "$f"
$RUN pre-commit install
fi fi
done done
fi fi

Loading…
Cancel
Save