diff options
author | wugeer <1284057728@qq.com> | 2024-08-15 16:27:23 +0800 |
---|---|---|
committer | andy.boot <bootandy@gmail.com> | 2024-08-21 18:46:20 +0100 |
commit | 75d05669494dbe3a51b5e84b9c20f8809ccc5b6d (patch) | |
tree | 2260c80e48846e491bfb8ae7e5fd41f9bc020412 | |
parent | 489d9ada440d61a780fa1a657f6bf7515a373f4a (diff) |
feat: use pre-commit hooks to standardize commit messages
-rw-r--r-- | .pre-commit-config.yaml | 11 |
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] |