From 77fa47385ca2536f1c18a650e47130a7ccaf2586 Mon Sep 17 00:00:00 2001 From: Abheesht Sharma Date: Mon, 20 Jan 2025 16:36:04 +0530 Subject: [PATCH] Run pre-commit cmd post api_gen only for api directory --- shell/api_gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/api_gen.sh b/shell/api_gen.sh index c9014dd..76b1606 100755 --- a/shell/api_gen.sh +++ b/shell/api_gen.sh @@ -8,4 +8,4 @@ echo "Generating api directory with public APIs..." python3 "${base_dir}"/api_gen.py # Format code because `api_gen.py` might order # imports differently. -pre-commit run --all-files || true +pre-commit run --files $(find "${base_dir}"/keras_rs/api -type f) || true