est31 / cargo-udeps

Find unused dependencies in Cargo.toml
Other
1.75k stars 46 forks source link

chore: add pre-commit hook #219

Closed leroyguillaume closed 9 months ago

leroyguillaume commented 1 year ago

Add pre-commit hook.

Need a new git tag to be used.

est31 commented 9 months ago

Thanks! This is a great way to use cargo-udeps. I think it makes sense maybe somewhere in a README section or something?

leroyguillaume commented 9 months ago

Thanks! This is a great way to use cargo-udeps. I think it makes sense maybe somewhere in a README section or something?

Good point! I updated the README!

est31 commented 9 months ago

I'd like to have only the readme changes. Adding the file to the repo doesn't seem useful to me.

leroyguillaume commented 9 months ago

I'd like to have only the readme changes. Adding the file to the repo doesn't seem useful to me.

The file .pre-commit-hooks.yaml is mandatory to use the pre-commit hook. It defines all available hooks that can be used from this repository.