From 75d05669494dbe3a51b5e84b9c20f8809ccc5b6d Mon Sep 17 00:00:00 2001 From: wugeer <1284057728@qq.com> Date: Thu, 15 Aug 2024 16:27:23 +0800 Subject: [PATCH] feat: use pre-commit hooks to standardize commit messages --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .pre-commit-config.yaml 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]