-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
136 lines (121 loc) · 5.37 KB
/
.pre-commit-hooks.yaml
File metadata and controls
136 lines (121 loc) · 5.37 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
- id: cargo-check-semver
name: cargo check semver
description: Check semver crate version considering potential breaking changes.
entry: cargo semver-checks check-release
language: system
types: [rust]
pass_filenames: false
- id: cargo-audit
name: cargo audit
description: Check cargo audit
entry: cargo audit --deny warnings
language: system
types: [rust]
pass_filenames: false
- id: cargo-outdated
name: cargo outdated
description: Check outdated deps
entry: cargo outdated -wR
language: system
types: [rust]
pass_filenames: false
- id: cargo-tests-all
name: cargo tests all features
description: cargo test all features
entry: cargo test --all-features -- --nocapture
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-all-possible-broken-code
name: clippy all with autofix and possible broken code
description: clippy all with autofix and possible broken code
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps --broken-code -- --no-deps
-D warnings -Wmissing_docs -W clippy::all
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-all
name: clippy all with autofix
description: clippy all with autofix
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps -- --no-deps -D warnings
-Wmissing_docs -W clippy::all
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-pedantic-possible-broken-code
name: clippy pedantic with autofix and possible broken code
description: clippy pedantic with autofix and possible broken code
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps --broken-code -- --no-deps
-D warnings -W clippy::pedantic
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-pedantic
name: clippy pedantic with autofix
description: cargo clippy pedantic
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps -- --no-deps -D warnings
-W clippy::pedantic
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-nursery-possible-broken-code
name: clippy nursery with autofix and possible-broken-code
description: clippy nursery with autofix and possible-broken-code
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps --broken-code -- --no-deps
-D warnings -W clippy::nursery
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-nursery
name: clippy nursery with autofix
description: clippy nursery with autofix and possible-broken-code
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps -- --no-deps -D warnings
-W clippy::nursery
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-others-possible-broken-code
name: clippy correctness suspicious style complexity perf with autofix and possible broken code
description: clippy correctness suspicious style complexity perf with autofix and possible broken code
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps --broken-code -- --no-deps
-D warnings -W clippy::cargo -W clippy::correctness -W clippy::suspicious -W clippy::style -W clippy::complexity -W clippy::perf
language: system
types: [rust]
pass_filenames: false
- id: clippy-autofix-others
name: clippy correctness suspicious style complexity perf with autofix
description: clippy correctness suspicious style complexity perf with autofix and possible broken code
entry: cargo clippy --all-targets --all-features --workspace --fix -Z unstable-options --allow-dirty --allow-staged --no-deps -- --no-deps -D warnings
-W clippy::cargo -W clippy::correctness -W clippy::suspicious -W clippy::style -W clippy::complexity -W clippy::perf
language: system
types: [rust]
pass_filenames: false
- id: cargo-format
name: cargo-format
description: cargo format
entry: cargo fmt --all -- --unstable-features --config edition="2021",imports_granularity="Crate",format_macro_matchers=true,format_strings=true,reorder_impl_items=true,group_imports="StdExternalCrate",unstable_features=true,use_field_init_shorthand=true
language: system
types: [rust]
pass_filenames: false
- id: cargo-dry-publish
name: cargo-dry-publish
description: cargo publish (dry)
entry: cargo publish --dry-run
language: system
types: [rust]
pass_filenames: false
- id: cargo-update
name: cargo-update
description: cargo update dependencies
entry: cargo update
language: system
types: [rust]
pass_filenames: false
- id: dprint-toml-fix
name: dprint-toml-fix
description: dprint linter/formatter (in Rust)
entry: dprint --config https://raw.githubusercontent.com/Manuthor/git-hooks/main/dprint.json fmt -- '**/*.toml'
language: system
types: [text]
pass_filenames: false