-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
94 lines (81 loc) · 2.31 KB
/
.pre-commit-config.yaml
File metadata and controls
94 lines (81 loc) · 2.31 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml
- id: check-merge-conflict
- repo: https://github.com/crate-ci/typos
rev: v1.45.0
hooks:
- id: typos
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.0
hooks:
- id: markdownlint-cli2
- repo: https://github.com/lycheeverse/lychee
rev: lychee-v0.23.0
hooks:
- id: lychee
args: ["--no-progress", "--config=.lychee.toml"]
types: [markdown]
- repo: https://github.com/Mergifyio/mergify-pre-commit
rev: 1.1.0
hooks:
- id: validate-mergify-config
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
args: [-verbose]
- repo: https://github.com/mpalmer/action-validator
rev: v0.9.0
hooks:
- id: action-validator
args: [-v]
files: ^\.github/(workflows/.*\.ya?ml|actions/.*/action\.ya?ml)$
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --all --check
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: cargo-nextest
name: cargo nextest
entry: cargo nextest run --all-features
language: system
types: [rust]
pass_filenames: false
stages: [manual]
- id: cargo-deny
name: cargo deny
entry: cargo deny check
language: system
pass_filenames: false
stages: [manual]
- id: mise-lock
name: mise lock
entry: mise install --locked --dry-run
language: system
files: (^mise\.toml$|^mise\.lock$)
pass_filenames: false
- id: sync-versions
name: sync versions
entry: node scripts/sync-versions.js
language: system
files: ^(Cargo\.toml|npm/.*/package\.json|npm/.*/package-lock\.json)$
pass_filenames: false