try a local pre-commit hook instaed

This commit is contained in:
Josh Thomas 2025-03-10 06:37:43 -05:00
parent 23ff32dbc0
commit 89c6dacb60

View file

@ -16,10 +16,20 @@ repos:
- id: trailing-whitespace
- id: no-commit-to-branch
args: ["--branch", "main"]
- repo: local
hooks:
- id: fmt
name: cargo fmt
description: format files with "cargo fmt"
types:
- rust
language: rust
entry: cargo fmt
args:
- --
- repo: https://github.com/backplane/pre-commit-rust-hooks
rev: v1.1.0
hooks:
- id: fmt
- id: check
- id: clippy
- id: test