From 15a44e680b62b40a947cdf5a3c7bb0940a8dcbbd Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Tue, 23 Jul 2024 23:53:02 -0700 Subject: [PATCH] update pre-commit to only run fmt on intelligent-prompt-gateway package (#22) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 38c9d3f9..d23b654f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: name: cargo-fmt language: system types: [file, rust] - entry: bash -c "cd envoyfilter && cargo fmt --all" + entry: bash -c "cd envoyfilter && cargo fmt -p intelligent-prompt-gateway -- --check" - id: cargo-clippy name: cargo-clippy language: system @@ -21,6 +21,6 @@ repos: name: cargo-test language: system types: [file, rust] - # --lib is to only test the library, since when integration tests are made, + # --lib is to only test the library, since when integration tests are made, # they will be in a seperate tests directory entry: bash -c "cd envoyfilter && cargo test --lib"