feat: use pre-commit hooks to standardize commit messages

This commit is contained in:
wugeer
2024-08-15 16:27:23 +08:00
committed by andy.boot
parent 489d9ada44
commit 75d0566949

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

@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: cargo-check
stages: [commit]
- id: fmt
stages: [commit]
- id: clippy
args: [--all-targets, --all-features]
stages: [commit]