summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwugeer <1284057728@qq.com>2024-08-15 16:27:23 +0800
committerandy.boot <bootandy@gmail.com>2024-08-21 18:46:20 +0100
commit75d05669494dbe3a51b5e84b9c20f8809ccc5b6d (patch)
tree2260c80e48846e491bfb8ae7e5fd41f9bc020412
parent489d9ada440d61a780fa1a657f6bf7515a373f4a (diff)
feat: use pre-commit hooks to standardize commit messages
-rw-r--r--.pre-commit-config.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..bd2a686
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -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]