Skip to content

Commit 89c6dac

Browse files
try a local pre-commit hook instaed
1 parent 23ff32d commit 89c6dac

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,20 @@ repos:
1616
- id: trailing-whitespace
1717
- id: no-commit-to-branch
1818
args: ["--branch", "main"]
19+
- repo: local
20+
hooks:
21+
- id: fmt
22+
name: cargo fmt
23+
description: format files with "cargo fmt"
24+
types:
25+
- rust
26+
language: rust
27+
entry: cargo fmt
28+
args:
29+
- --
1930
- repo: https://github.com/backplane/pre-commit-rust-hooks
2031
rev: v1.1.0
2132
hooks:
22-
- id: fmt
2333
- id: check
2434
- id: clippy
2535
- id: test

0 commit comments

Comments
 (0)