From 28d0459c69a6f9bcf511fe982ba573cb7842e385 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 30 Dec 2022 14:44:59 -0800 Subject: [PATCH] update_requirements: skip pre-commit install on mac --- update_requirements.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/update_requirements.sh b/update_requirements.sh index e5dedea7a6..b430df59e5 100755 --- a/update_requirements.sh +++ b/update_requirements.sh @@ -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