-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (54 loc) · 1.35 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
49
50
51
52
53
54
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-toml
- id: mixed-line-ending
- id: check-json
- id: pretty-format-json
- repo: https://github.com/crate-ci/typos
rev: v1.22.9
hooks:
- id: typos
args: []
exclude: examples
- repo: https://github.com/DevinR528/cargo-sort
rev: v1.0.9
hooks:
- id: cargo-sort
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
types: ["rust"]
- id: cargo-check
types: ["rust"]
- id: clippy
types: ["rust"]
args: ["--no-deps",
"--all-targets",
"--",
"-D", "warnings",
"-A", "clippy::all",
"-W", "clippy::clone_on_copy",
"-W", "clippy::needless_borrow",
"-W", "clippy::correctness",
"-W", "clippy::suspicious",
]
- repo: https://github.com/shssoichiro/oxipng
rev: v9.1.2
hooks:
- id: oxipng
- repo: local
hooks:
- id: cargo-test
name: Run tests
entry: cargo test
language: system
pass_filenames: false
types_or: ["rust", "png", "toml"]
exclude: $(fzcmd|f128|instruction-decoder)