-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
168 lines (136 loc) · 3.48 KB
/
mise.toml
File metadata and controls
168 lines (136 loc) · 3.48 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# ================================================================
# Settings
# ================================================================
[settings]
auto_install = false
minimum_release_age = "3d"
# ================================================================
# Tools
# ================================================================
[tools]
# Node.js
node = "25"
# Markdown
markdownlint-cli2 = "0.22"
# GitHub Actions
actionlint = "1"
shellcheck = "0.11"
zizmor = "1"
# Other tools
lefthook = "2"
cspell = "10"
gitleaks = "8"
# ================================================================
# Tasks
# See: https://mise.jdx.dev/tasks/toml-tasks.html
# ================================================================
# Global
[tasks.setup]
description = "Setup tools"
run = [
"mise trust -yq",
"mise install",
"lefthook install",
"cargo install cargo-edit",
]
alias = "s"
[tasks.fix]
description = "Fix all issues"
depends = ["md-fix", "gh-fix", "rs-fix"]
alias = "f"
[tasks.check]
description = "Check for all issues"
depends = ["md-check", "gh-check", "spell-check", "gitleaks-check", "rs-check"]
alias = "c"
[tasks.fix-and-check]
run = [{ task = "fix" }, { task = "check" }]
description = "Fix all issues and check for issues"
alias = "fc"
# Markdown
[tasks.md-fix]
description = "Fix Markdown issues"
run = "markdownlint-cli2 '**/*.md' --fix"
alias = "mf"
[tasks.md-check]
description = "Check for Markdown issues"
run = "markdownlint-cli2 '**/*.md'"
alias = "mc"
# GitHub Actions
[tasks.gh-fix]
description = "Fix GitHub Actions workflows"
run = "zizmor --fix=all ."
alias = "ghf"
[tasks.gh-check]
description = "Check GitHub Actions workflows"
run = [
"actionlint .github/workflows/*.yml",
"zizmor . --persona=pedantic --min-severity=medium",
]
alias = "ghc"
# Spell Check
[tasks.spell-check]
description = "Check spelling"
run = "cspell . --gitignore --verbose"
alias = "sc"
# Secrets
[tasks.gitleaks-check]
description = "Check for leaked secrets"
run = "gitleaks detect --no-banner"
alias = "glc"
[tasks.gitleaks-protect]
description = "Check staged files for leaked secrets"
run = "gitleaks protect --staged --no-banner"
alias = "glp"
# Rust
[tasks.rs-install]
description = "Install Rust dependencies"
run = "cargo fetch"
[tasks.rs-fix]
description = "Fix Rust code"
run = [
"cargo clippy --all-targets --all-features --no-deps --fix --allow-dirty -- -D warnings",
"cargo fmt",
]
alias = "rf"
[tasks.rs-check]
description = "Check Rust code"
run = [{ task = "rs-lint" }, { task = "rs-test" }]
alias = "rc"
[tasks.rs-lint]
description = "Lint Rust code"
run = [
"cargo clippy --all-targets --all-features --no-deps -- -D warnings",
"cargo fmt -- --check",
]
alias = "rl"
[tasks.rs-test]
description = "Run Rust tests"
run = ["cargo test -- --nocapture"]
alias = "rt"
[tasks.rs-run]
description = "Run Rust application"
run = "cargo run"
alias = "rr"
[tasks.rs-build]
description = "Build Rust application"
run = "cargo build"
[tasks.rs-build-release]
description = "Build Rust application in release mode"
run = "cargo build --release"
[tasks.rs-clean]
description = "Clean Rust build artifacts"
run = "cargo clean"
# Docs
[tasks.docs-install]
description = "Install docs dependencies"
run = ["corepack enable pnpm", "pnpm install"]
dir = "website"
[tasks.docs-serve]
description = "Build and serve docs locally (all locales)"
run = ["pnpm build", "pnpm serve"]
dir = "website"
alias = "ds"
[tasks.docs-build]
description = "Build docs static site"
run = "pnpm build"
dir = "website"