-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
39 lines (39 loc) · 1.05 KB
/
.pre-commit-hooks.yaml
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
- id: cargo-fmt
name: Cargo fmt
description: Format files with cargo fmt.
entry: hooks/cargo_fmt.sh
language: script
files: (\.rs$|Cargo\.lock$|Cargo\.toml$)
require_serial: true
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: hooks/cargo_in_dir.sh
language: script
args: ["check"]
files: (\.rs$|Cargo\.lock$|Cargo\.toml$)
require_serial: true
- id: cargo-clippy
name: cargo clippy
description: Lint rust sources
entry: hooks/cargo_in_dir.sh
language: script
args: ["clippy"]
files: (\.rs$|Cargo\.lock$|Cargo\.toml$)
require_serial: true
- id: cargo-machete
name: cargo machete
description: Check unused dependencies
entry: hooks/cargo_in_dir.sh
language: script
args: ["machete"]
files: (\.rs$|Cargo\.lock$|Cargo\.toml$)
require_serial: true
- id: cargo-lock
name: cargo update -w --locked
description: Check if the lock file is up to date
entry: hooks/cargo_in_dir.sh
language: script
args: ["update"]
files: (\.rs$|Cargo\.lock$|Cargo\.toml$)
require_serial: true