-
Notifications
You must be signed in to change notification settings - Fork 379
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 utility to install git hooks. #787
Conversation
This probably should have a powershell script for Windows, IMO, rather than bash. |
cross-dev/pre-commit
Outdated
|
||
cargo fmt -- --check | ||
cargo clippy --all-features -- --deny warnings | ||
if cargo +nightly >/dev/null 2>&1; then |
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.
Changed this to silently check of the nightly channel is installed, and only run the clippy check if it is.
Adds the `install-git-hooks` to `xtask`, which installs pre-commit hooks to ensure clippy and fmt are run on all commits.
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.
bors r+
Build succeeded: |
Adds the
install-git-hooks
tocross-dev
, which installs pre-commit hooks to ensure clippy and fmt are run on all commits.