This is an automated email from the ASF dual-hosted git repository.
SYaoJun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git
The following commit(s) were added to refs/heads/main by this push:
new 934a0bdc feat: Added Rust pre-commit hooks (#868)
934a0bdc is described below
commit 934a0bdc8efd4c25b76f47c2753be2ee9d30dd07
Author: quan319 <[email protected]>
AuthorDate: Thu May 14 00:28:36 2026 -0400
feat: Added Rust pre-commit hooks (#868)
* Added Rust pre-commit hooks
* Update .pre-commit-config.yaml
narrowing the files regex to *.rs
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jason <[email protected]>
---------
Signed-off-by: Jason <[email protected]>
Co-authored-by: Jason <[email protected]>
Co-authored-by: Copilot <[email protected]>
---
.pre-commit-config.yaml | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4c269b02..4f07c5a5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -106,4 +106,21 @@ repos:
language: system
files: ^maven-projects/spark/
pass_filenames: false
- require_serial: true
\ No newline at end of file
+ require_serial: true
+
+ - id: cargo-fmt
+ name: Rust cargo fmt
+ entry: bash -c 'cd rust && cargo fmt --all'
+ language: system
+ files: ^rust/.*\.rs$
+ pass_filenames: false
+ require_serial: true
+
+ - id: cargo-clippy
+ name: Rust cargo clippy
+ entry: bash -c 'cd rust && cargo clippy --all-targets --all-features
-- -D warnings'
+ language: system
+ files: ^rust/.*\.(rs|toml|lock)$
+ pass_filenames: false
+ require_serial: true
+ stages: [manual]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]