Skip to content

Conversation

@ryankert01
Copy link
Contributor

@ryankert01 ryankert01 commented Dec 25, 2025

Purpose of PR

Related Issues or PRs

Closes #736

@ryankert01 ryankert01 changed the base branch from main to dev-qdp December 25, 2025 14:03
@rich7420
Copy link
Contributor

I think it's pretty good. thanks for the patch @ryankert01 !
could we add into .github/workflows/pre-commit.yml ?

@ryankert01
Copy link
Contributor Author

@rich7420
Copy link
Contributor

All passed locally.
Thanks!

@rich7420 rich7420 merged commit 167f743 into apache:dev-qdp Dec 29, 2025
2 checks passed
@ryankert01 ryankert01 deleted the linter-rust branch December 29, 2025 02:08
# Rust Linter
- repo: local
hooks:
- id: rust-fmt
Copy link

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dentiny We probably cannot use it because our cargo.toml is not at root, it's at qdp/cargo.toml. #766 WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants