From 213d58487824fd728d5d18dde900420856b0faad Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Fri, 26 Sep 2025 19:57:51 -0400 Subject: [PATCH] add pre-commit config (#15) Signed-off-by: Jason Hall --- .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..d568e32 --- /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: fmt + name: Rust formatter + - id: clippy + name: Rust linter + args: ['--all-targets', '--', '-D', 'warnings'] + - id: cargo-check + name: Rust compiler check \ No newline at end of file