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

Add pre-commit hooks in the rust template. #1

Merged
merged 1 commit into from
Nov 6, 2020
Merged

Add pre-commit hooks in the rust template. #1

merged 1 commit into from
Nov 6, 2020

Conversation

daemontus
Copy link
Member

It can be argued that it is useful to never commit invalid code. Or sometimes you just forget to run tests and when it hits CI its too late... This PR adds git pre-commit hook to the rust lib template that will run cargo formatting and test checks before every commit, ensuring we never unintentionally commit broken code.

Hooks need to be enabled on every machine using git config core.hooksPath .githooks

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.

None yet

2 participants