rust: add rust hooks
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
20d3c44195
commit
ee5c737b7f
1 changed files with 14 additions and 0 deletions
14
.pre-commit-hooks.yaml
Normal file
14
.pre-commit-hooks.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
- id: rust-fmt
|
||||||
|
name: rustfmt
|
||||||
|
description: Format Rust sources with the ‹rustfmt›.
|
||||||
|
entry: rustfmt
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- rust
|
||||||
|
- id: rust-clippy
|
||||||
|
name: clippy
|
||||||
|
description: Lint Rust sources with ‹clippy›.
|
||||||
|
entry: clippy-driver
|
||||||
|
language: system
|
||||||
|
types:
|
||||||
|
- rust
|
Loading…
Reference in a new issue