-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 1.05 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 1.05 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
repos:
- repo: local
hooks:
- id: rustfmt
name: rustfmt
language: system
entry: cargo +nightly fmt --all -- --check
pass_filenames: false
types: [rust]
- id: clippy
name: clippy
language: system
entry: cargo clippy --all-targets --all-features -- -D warnings
pass_filenames: false
types: [rust]
- id: cargo-deny
name: cargo deny
language: system
entry: cargo deny check
pass_filenames: false
files: ^(Cargo\.(toml|lock)|deny\.toml)$
- id: check-changeset
name: check changeset
language: system
entry: bash .github/scripts/check_changeset.sh
pass_filenames: false
always_run: true
- id: ghafmt
name: ghafmt
language: system
entry: cargo run --quiet -- --mode=check
pass_filenames: true
files: ^(\.github/workflows/.*\.ya?ml|(.*\/)?action\.ya?ml)$
- repo: https://github.com/rhysd/actionlint
rev: v1.7.11
hooks:
- id: actionlint