File tree Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Expand file tree Collapse file tree 1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change
1
+ default_language_version :
2
+ rust : " 1.86"
3
+
1
4
repos :
2
5
- repo : https://github.com/pre-commit/pre-commit-hooks
3
6
rev : v5.0.0
@@ -14,10 +17,38 @@ repos:
14
17
- id : trailing-whitespace
15
18
- id : no-commit-to-branch
16
19
args : ["--branch", "main"]
17
- - repo : https://github.com/backplane/pre-commit-rust-hooks
18
- rev : v1.1.0
20
+ - repo : local
19
21
hooks :
20
22
- 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
+ - --
21
31
- 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
22
39
- 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
23
47
- 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
You can’t perform that action at this time.
0 commit comments