update pre-commit to only run fmt on intelligent-prompt-gateway package (#22)

This commit is contained in:
Adil Hafeez 2024-07-23 23:53:02 -07:00 committed by GitHub
parent cad38295bf
commit 15a44e680b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"