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

Added standard pre-commit script that runs formatting, clippy and tests. #17

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

Conversation

tfenne
Copy link
Member

@tfenne tfenne commented Oct 27, 2022

No description provided.

@tfenne tfenne self-assigned this Oct 27, 2022
@tfenne tfenne force-pushed the tf_add_precommit_script branch 2 times, most recently from 7867d13 to 70f66b5 Compare October 27, 2022 10:27
@tfenne
Copy link
Member Author

tfenne commented Oct 31, 2022

@nh13 and @samfulcrum - shall I merge this?

Copy link
Member

@nh13 nh13 left a 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 <>?

@tfenne
Copy link
Member Author

tfenne commented Nov 1, 2022

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.

Copy link

@sam-white04 sam-white04 left a 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

Base automatically changed from refactor/grep-like to main December 14, 2022 17:42
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