rust: add rust hooks

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2024-02-21 23:22:16 +01:00
parent 20d3c44195
commit ee5c737b7f
Signed by: mfocko
GPG key ID: 7C47D46246790496

14
.pre-commit-hooks.yaml Normal file
View 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