Skip to content

Commit 8359890

Browse files
swap pre-commit rust for local hooks (#78)
1 parent de588ce commit 8359890

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

.pre-commit-config.yaml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
default_language_version:
2+
rust: "1.86"
3+
14
repos:
25
- repo: https://github.com/pre-commit/pre-commit-hooks
36
rev: v5.0.0
@@ -14,10 +17,38 @@ repos:
1417
- id: trailing-whitespace
1518
- id: no-commit-to-branch
1619
args: ["--branch", "main"]
17-
- repo: https://github.com/backplane/pre-commit-rust-hooks
18-
rev: v1.1.0
20+
- repo: local
1921
hooks:
2022
- id: fmt
23+
name: cargo fmt
24+
description: format files with "cargo fmt"
25+
types:
26+
- rust
27+
language: rust
28+
entry: cargo fmt
29+
args:
30+
- --
2131
- id: check
32+
name: cargo check
33+
description: check the package for errors with "cargo check"
34+
types:
35+
- rust
36+
language: rust
37+
entry: cargo check
38+
pass_filenames: false
2239
- id: clippy
40+
name: cargo clippy
41+
description: check the package with "cargo clippy"
42+
types:
43+
- rust
44+
language: rust
45+
entry: cargo clippy
46+
pass_filenames: false
2347
- id: test
48+
name: cargo test
49+
description: run the tests with "cargo test"
50+
types:
51+
- rust
52+
language: rust
53+
entry: cargo test
54+
pass_filenames: false

0 commit comments

Comments
 (0)