Skip to content
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

Pre-Push git hook #34

Merged
merged 2 commits into from
Jul 27, 2024
Merged

Pre-Push git hook #34

merged 2 commits into from
Jul 27, 2024

Conversation

bitfl0wer
Copy link
Member

To keep code formatting consistent across many contributors, I added the rusty-hook crate and configured a git pre-push hook through it, which runs cargo fmt before you push. If the code formatting is different than rustfmt would expect, the push aborts, requiring one to run cargo fmt manually before pushing.

@bitfl0wer bitfl0wer merged commit 124fb33 into main Jul 27, 2024
4 checks passed
@bitfl0wer bitfl0wer deleted the pre-commit branch July 27, 2024 09:01
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.

1 participant