From 0beb9a6b4e912ba79062cbc287d00b164a4caeb5 Mon Sep 17 00:00:00 2001 From: Robin5605 Date: Fri, 19 Jul 2024 14:04:38 -0500 Subject: [PATCH] Add pre-commit --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 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..bc74bcb --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: +- repo: https://github.com/doublify/pre-commit-rust + rev: v1.0 + hooks: + - id: fmt + - id: cargo-check + - id: clippy + args: ["--", "-D", "clippy:all", "-D", "clippy::pedantic", "-D", "clippy::cargo", "-A", "clippy::cargo_common_metadata", "-A", "clippy::multiple_crate_versions"]