-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.22 KB
/
.pre-commit-config.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
40
41
42
43
44
45
46
47
48
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: cargo-check
- id: clippy
- repo: local
hooks:
- id: rustfmt
name: Rust formatting
description: format all rust files
entry: cargo +nightly fmt --
files: \.rs$
language: system
pass_filenames: false
- id: taplo-fmt
name: Taplo formatting
description: format all toml files
entry: taplo format
args:
- '--verbose'
- '--diff'
files: \.toml$
language: system
pass_filenames: false
- id: cargo-sort
name: Cargo sort
description: sort cargo dependencies
entry: cargo sort
args:
- '--workspace'
files: Cargo\.toml$
language: system
pass_filenames: false
- id: cargo-udeps
name: Cargo udeps
description: Prune unused dependencies
entry: cargo +nightly udeps --
files: Cargo\.toml$
language: system
pass_filenames: false
- id: typos
name: Typos
description: Check typos
entry: typos
language: system
pass_filenames: false
fail_fast: true