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

Force poetry to stay in the same venv when installing pre-commit hooks
old-commit-hash: 7f1b13923f
beeps
Kacper Rączy 2 years ago committed by GitHub
parent b07e2bdb4a
commit 5f5478956b
  1. 5
      update_requirements.sh

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

Loading…
Cancel
Save