mirror of https://github.com/commaai/openpilot.git
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
This commit is contained in:
parent
b07e2bdb4a
commit
5f5478956b
|
@ -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…
Reference in New Issue