-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
92 lines (84 loc) · 2.69 KB
/
.pre-commit-config.yaml
File metadata and controls
92 lines (84 loc) · 2.69 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
# .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: ["--maxkb=10240"]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-illegal-windows-names
- id: check-json
types: [json]
- id: check-toml
types: [toml]
- id: check-yaml
types: [yaml]
args: [--allow-multiple-documents]
- id: check-xml
types: [xml]
- id: mixed-line-ending
args: [--fix=auto]
- id: check-vcs-permalinks
- repo: https://github.com/FeryET/pre-commit-rust
rev: v1.2.1
hooks:
- id: fmt
types: [rust]
- id: clippy
args: ["--", "-D", "warnings"]
types: [rust, cargo]
- id: cargo-check
types: [rust, cargo, cargo-lock]
# GitHub Actions validation
- repo: https://github.com/rhysd/actionlint
rev: v1.7.11
hooks:
- id: actionlint
files: ".github/workflows/"
exclude: ^.github/workflows/release.yml$
types: [yaml]
# 🐚 Shell script validation (local via mise, avoids Docker dependency)
- repo: local
hooks:
- id: shellcheck
name: ShellCheck
entry: mise x -- shellcheck
language: system
types: [shell]
- 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: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-config
- mdformat-footnote
- mdformat-front-matters
- mdformat-simple-breaks
- mdformat-web
- mdformat-wikilink
- mdformat-gfm-alerts
- mdformat-toc
types: [markdown]
exclude: ^\.claude/
# 🔒 Security audit for Rust dependencies (requires mise - run `just setup` first)
- repo: local
hooks:
- id: cargo-audit
name: cargo-audit
entry: mise x -- cargo audit
language: system
pass_filenames: false
types: [cargo, cargo-lock]
- repo: https://github.com/DevinR528/cargo-sort
rev: v2.1.0
hooks:
- id: cargo-sort
types: [cargo]