-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
61 lines (57 loc) · 1.78 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
61 lines (57 loc) · 1.78 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
# TODO: migrate to prek.toml once Renovate ships native prek manager
# See: https://github.com/renovatebot/renovate/issues/41683
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/rhysd/actionlint
rev: "v1.7.12"
hooks:
- id: actionlint
- repo: https://github.com/oxc-project/mirrors-oxfmt
rev: "v0.51.0"
hooks:
- id: oxfmt
types_or: [javascript, ts, json, json5, yaml, markdown, toml]
- repo: https://github.com/oxc-project/mirrors-oxlint
rev: "v1.66.0"
hooks:
- id: oxlint
- repo: local
hooks:
- id: fmt
name: cargo fmt
description: Check Rust formatting.
entry: cargo fmt --all -- --check
language: rust
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
description: Check the workspace for errors.
entry: cargo check --workspace --all-targets
language: rust
types: [rust]
pass_filenames: false
- id: clippy
name: cargo clippy
description: Lint the workspace.
entry: cargo clippy --workspace --all-targets -- -D warnings
language: rust
types: [rust]
pass_filenames: false
- id: whittle-fix
name: whittle (auto-normalize commit subject)
description: Dogfood our own commit-msg normalizer.
entry: cargo run --quiet --release -p whittle --bin whittle -- fix
language: rust
stages: [commit-msg]