From e9784a7f9454c9c2263419af7851c9d1b320b119 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Wed, 25 Mar 2026 19:04:21 -0400 Subject: [PATCH] pre-commit hook --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 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..34d4298 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,15 @@ +repos: + - repo: local + hooks: + - id: rustfmt + name: rustfmt + entry: cargo fmt -- + language: system + files: \.rs$ + pass_filenames: true + - id: site-format-check + name: site format check + entry: make site-format-check + language: system + files: ^site/ + pass_filenames: false