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

Rusty hook #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Rusty hook #20

wants to merge 4 commits into from

Conversation

klautcomputing
Copy link
Contributor

Play around with it for a bit and see whether you like the workflow, it should make sure we always have formatted and clippy'd code.

(If you are happy I will squash my test commits but feel free to add your own!)

@@ -0,0 +1,6 @@
[hooks]
pre-commit = "cargo test"
pre-push = "cargo test && cargo check && cargo clippy && cargo fmt -- --check"
Copy link
Collaborator

Choose a reason for hiding this comment

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

These run pre-push but they don't stop the push when warnings are generated by clippy for example.

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.

2 participants