From e528033383b9a3767c13041ce22aa85f18b3da61 Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Mon, 30 Oct 2023 19:07:34 -0600 Subject: [PATCH] Tools: Enforce pre-commit in build_ci.sh Signed-off-by: Ryan Friedman --- Tools/scripts/build_ci.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tools/scripts/build_ci.sh b/Tools/scripts/build_ci.sh index 6223c2c0b09cf3..c59605ff906d94 100755 --- a/Tools/scripts/build_ci.sh +++ b/Tools/scripts/build_ci.sh @@ -424,6 +424,13 @@ for t in $CI_BUILD_TARGET; do continue fi + if [ "$t" == "pre-commit-cleanliness" ]; then + echo "Checking pre-commit code cleanliness" + pre-commit install + pre-commit run --all-files --verbose --show-diff-on-failure + continue + fi + if [ "$t" == "configure-all" ]; then echo "Checking configure of all boards" ./Tools/scripts/configure_all.py