mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
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: 7f1b13923fda8f23e82a9972e776ed4d61044341
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user