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
# .pre-commit-config.yaml
repos:
# Standard code cleanup hooks (language agnostic)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-illegal-windows-names
- id: check-json
- id: check-toml
- id: check-yaml
args:
- id: check-xml
- id: mixed-line-ending
args:
- id: check-vcs-permalinks
- repo: https://github.com/FeryET/pre-commit-rust
rev: v1.2.1
hooks:
- id: fmt
- id: clippy
- id: cargo-check
- id: build
# GitHub Actions validation
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
files: ".github/workflows/"
exclude: ^.github/workflows/release.yml$
# Shell script validation
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0
hooks:
- id: shellcheck
exclude: ^.github/workflows/release.yml$
# Commit message linting (commit-msg only, not blocking push)
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.9.1
hooks:
- id: commitizen
stages:
- repo: https://github.com/bnjbvr/cargo-machete
rev: v0.9.1
hooks:
- id: cargo-machete
# Markdown formatting and linting (temporarily disabled due to rust code block formatting issues)
# - repo: https://github.com/hukkin/mdformat
# rev: 0.7.22
# hooks:
# - id: mdformat
# additional_dependencies:
# - mdformat-gfm
# - mdformat-admon
# - mdformat-config
# - mdformat-footnote
# - mdformat-front-matters
# - mdformat-simple-breaks
# - mdformat-tables
# - mdformat-web
# - mdformat-wikilink
# - mdformat-gfm-alerts
# - mdformat-toc
# files: \.(md|mdx)$
# exclude: ^target/|
- repo: https://github.com/DevinR528/cargo-sort
rev: v2.0.2
hooks:
- id: cargo-sort