forked from backplane/pre-commit-rust-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
43 lines (43 loc) · 872 Bytes
/
.pre-commit-hooks.yaml
File metadata and controls
43 lines (43 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
- id: fmt
name: cargo fmt
description: format files with "cargo fmt"
types:
- rust
language: system
entry: cargo fmt
args:
- --
- id: fmt-check
name: cargo fmt (check-only)
description: check the formatting of source files with "cargo fmt --check"
types:
- rust
language: system
entry: cargo fmt
args:
- --check
- --
- id: check
name: cargo check
description: check the package for errors with "cargo check"
types:
- rust
language: system
entry: cargo check
pass_filenames: false
- id: clippy
name: cargo clippy
description: check the package with "cargo clippy"
types:
- rust
language: system
entry: cargo clippy
pass_filenames: false
- id: test
name: cargo test
description: run the tests with "cargo test"
types:
- rust
language: system
entry: cargo test
pass_filenames: false