mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-15 01:42:05 +08:00
update_requirements: skip pre-commit install on mac
This commit is contained in:
+10
-8
@@ -69,11 +69,13 @@ else
|
||||
RUN="poetry run"
|
||||
fi
|
||||
|
||||
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
|
||||
fi
|
||||
done
|
||||
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
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user