-
Notifications
You must be signed in to change notification settings - Fork 0
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
Setup pre-commit hooks #33
Conversation
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.
Nice start, mainly one suggestion about structuring the npm scripts to use corresponding scripts for each app.
- Update .prettierrc - Add pre-commit scripts to run - Remove unused dependency husky
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.
Thanks for setting all of this up. Side note: pre-commit seems to not be maintained anymore, but we'll stick with this for now. We could maybe also look into using Turborepo in the future for simpler script delegation. Please squash during merge.
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.
Looks good! Just for clarification "pod operation backend"- what exactly are we planning to have for this?
* Add pre-commit and a few basic hooks * Add additional pre-commit hooks * Add tsc pre-commit hook * Miscellaneous fixes: - Update .prettierrc - Add pre-commit scripts to run - Remove unused dependency husky * Reorganize pre-commit hooks into subrepos * Use tabs with width of 4 to format package.json * Remove unecessary package.json elements, add author * Update README.md with pre-commit hooks section * Add test hook for control-station * Add test hook for control-station
This PR uses
pre-commit
to set up pre-commit hooks for the following:control-station/
tsc
pod-operation/
cargo fmt
cargo check
cargo clippy