diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..3abcfe7 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -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