Skip to content

Commit 5df59d3

Browse files
swap pre-commit rust for local hooks
1 parent de588ce commit 5df59d3

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.pre-commit-config.yaml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,38 @@ repos:
1414
- id: trailing-whitespace
1515
- id: no-commit-to-branch
1616
args: ["--branch", "main"]
17-
- repo: https://github.com/backplane/pre-commit-rust-hooks
18-
rev: v1.1.0
17+
- repo: local
1918
hooks:
2019
- id: fmt
20+
name: cargo fmt
21+
description: format files with "cargo fmt"
22+
types:
23+
- rust
24+
language: rust
25+
entry: cargo fmt
26+
args:
27+
- --
2128
- id: check
29+
name: cargo check
30+
description: check the package for errors with "cargo check"
31+
types:
32+
- rust
33+
language: rust
34+
entry: cargo check
35+
pass_filenames: false
2236
- id: clippy
37+
name: cargo clippy
38+
description: check the package with "cargo clippy"
39+
types:
40+
- rust
41+
language: rust
42+
entry: cargo clippy
43+
pass_filenames: false
2344
- id: test
45+
name: cargo test
46+
description: run the tests with "cargo test"
47+
types:
48+
- rust
49+
language: rust
50+
entry: cargo test
51+
pass_filenames: false

0 commit comments

Comments
 (0)