forked from Mooncake-Labs/moonlink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 875 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 875 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
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.35.1
hooks:
- id: typos
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- repo: local
hooks:
- id: cargo-sort
name: cargo-sort
language: system
files: '\.toml$'
entry: cargo sort --workspace
pass_filenames: false
- id: clipper-check-fix
name: clipper-check-fix
language: system
files: '\.rs$'
entry: bash -c 'cargo clippy --all-targets --all-features -- -D warnings || cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged'
pass_filenames: false
- id: check-dependency-license
name: check-dependency-license
language: system
files: '\.toml$'
entry: cargo deny check
pass_filenames: false