pre-commit hook

This commit is contained in:
Harivansh Rathi 2026-03-25 19:04:21 -04:00
parent 372315b6ed
commit e9784a7f94

15
.pre-commit-config.yaml Normal file
View file

@ -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