-
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
Also run hooks when only Cargo.toml and/or Cargo.lock has changed #1
Comments
I will look into this. @tyilo |
@tyilo I have tweaked the hook configs and added cargo.toml and cargo.lock to the Re |
Doesn't seem to work:
I only use the Thus the |
Also see doublify#33
Both the
cargo-check
andclippy
hooks should also be run if onlyCargo.toml
and/orCargo.lock
has been changed.The following shows the problem:
In the 3rd commit we have removed
libc
so that the code no longer compiles. However thecargo-check
step is skipped, so this is not caught :(Running
pre-commit run --all-files
manually results in:The text was updated successfully, but these errors were encountered: