chore: Add pre-commit.

This commit is contained in:
Nolan Darilek 2024-07-07 09:50:30 -05:00
parent 96f3457d55
commit 3d422dc9e4

10
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,10 @@
fail_fast: true
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
args: [--, --check]
- id: cargo-check
args: [--bins, --examples]
- id: clippy