-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added standard pre-commit script that runs formatting, clippy and tests. #17
base: main
Are you sure you want to change the base?
Conversation
Add a rust-toolchain file.
7867d13
to
70f66b5
Compare
70f66b5
to
d80dc14
Compare
@nh13 and @samfulcrum - shall I merge this? |
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.
What's your opinion on using this in our github actions versus having to places where we run cargo <>?
I think if it's easy it would be great to use the same thing in github actions (perhaps with --check to rust fmt; the script as is reformats). But I don't quite know how that interacts with how the actions are setup now. |
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.
Good idea, thank you for adding this.
Note - I ran precommit.sh, everything passed, and when I pushed I still received a clippy error in matcher.rs. Weird since there were no changes made to that file. I also ran 'cargo fmt' manually in addition to precommit.sh
No description provided.