-
Notifications
You must be signed in to change notification settings - Fork 971
[QDP] add Rust Linter to pre-commit hook #758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
75d0868 to
7aef961
Compare
Signed-off-by: Hsien-Cheng Huang <ryankert01@gmail.com>
|
I think it's pretty good. thanks for the patch @ryankert01 ! |
|
@rich7420 I think it already ran formatting in ci! https://github.com/apache/mahout/actions/runs/20506289497/job/58938406396#step:5:1 |
|
All passed locally. |
| # Rust Linter | ||
| - repo: local | ||
| hooks: | ||
| - id: rust-fmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's native rust format precommit hook to use: https://github.com/Mooncake-Labs/moonlink/blob/97f9bd064c2ca2d633afea7c4534e2c662b55c3f/.pre-commit-config.yaml#L6-L9
The benefit of which is we don't need pre-setup in CI (though cargo fmt is built in by default)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, we actually be able to config it. Thanks for the suggestion!
Purpose of PR
Related Issues or PRs
Closes #736