-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
184 lines (156 loc) · 3.52 KB
/
mise.toml
File metadata and controls
184 lines (156 loc) · 3.52 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
experimental_monorepo_root = true
[monorepo]
config_roots = ["pkgs/*"]
[tools]
# Stack
# Rust
rust = { version = "latest", channel = "stable", components = "rustfmt,clippy" }
# Node.js
node = "lts"
pnpm = "latest"
oxfmt = "latest"
# Python
python = "3.13.13"
uv = "latest"
ty = "latest"
ruff = "latest"
# Tools
cargo-binstall = "latest"
"cargo:just" = "latest"
"cargo:toml2json" = "latest"
"cargo:bacon" = "latest"
"cargo:cargo-nextest" = "latest"
"cargo:cargo-release" = "latest"
"cargo:cargo-insta" = "latest"
"cargo:just-lsp" = "latest"
watchexec = "latest"
shfmt = "latest"
gh = "latest"
git-cliff = "latest"
fnox = "latest"
jaq = "latest"
[settings]
lockfile = true
experimental = true
python.uv_venv_auto = true
idiomatic_version_file_enable_tools = ["rust"] # Use rust-toolchain.toml
[env]
_.file = "./.env"
_.python.venv = { create = true, path = '.venv' }
MISE_EXPERIMENTAL = true # Enable monorepo root support
[tasks.install]
depends = ["install/pnpm", "install/uv"]
[tasks."install/pnpm"]
run = "pnpm install"
[tasks."install/uv"]
run = "uv sync"
[tasks.build]
run = "cargo build"
[tasks.lint]
depends = [
"lint/rust",
# TODO: Add JS/Python linters
]
[tasks."lint:fix"]
depends = [
"lint/rust:fix",
# TODO: Add JS/Python linters
]
[tasks."lint:watch"]
depends = [
"lint/rust:watch",
# TODO: Add JS/Python linters
]
[tasks."lint/rust"]
run = "cargo clippy --all-targets --all-features"
[tasks."lint/rust:fix"]
run = "cargo clippy --all-targets --all-features --fix"
depends_post = "format/rust"
[tasks."lint/rust:watch"]
run = "watchexec -e rs,Cargo.toml,Cargo.lock -rc reset -- cargo clippy --all-targets --all-features"
[tasks.format]
depends = [
"format/rust",
# TODO: Add JS/Python formatters
]
[tasks."format:check"]
depends = [
"format/rust:check",
# TODO: Add JS/Python formatters
]
[tasks."format/rust"]
run = "cargo fmt --all"
[tasks."format/rust:check"]
run = "cargo fmt --all --check"
[tasks."test/unit"]
depends = [
"test/unit/rust",
# TODO: Add JS/Python unit tests
]
[tasks."test/unit:watch"]
depends = [
"test/unit/rust:watch",
# TODO: Add JS/Python unit tests
]
[tasks."test/unit/rust"]
run = "cargo nextest run --no-fail-fast"
[tasks."test/unit/rust:watch"]
run = "watchexec -e rs,Cargo.toml,Cargo.lock -rc reset -- cargo nextest run --no-fail-fast"
[tasks."test/system"]
depends = [
"test/system/examples",
# TODO: Add more system tests
]
[tasks."test/system/examples"]
run = "./scripts/test-examples.sh"
[tasks.publish]
run = [{ task = "publish/cargo" }]
[tasks."publish/cargo"]
run = '''
cargo release publish \
--exclude litty \
--exclude litty_macro \
--exclude litty_macro_tests \
--exclude toml_ext \
--exclude genotype_runtime \
--exclude genotype_json_types \
--exclude genotype_test \
--workspace \
--all-features \
--no-verify \
--no-confirm \
--allow-branch '*' \
--execute
'''
[tasks."publish/cargo:dry"]
run = '''
cargo release publish \
--exclude litty \
--exclude litty_macro \
--exclude litty_macro_tests \
--exclude toml_ext \
--exclude genotype_runtime \
--exclude genotype_json_types \
--exclude genotype_test \
--workspace \
--all-features \
--no-verify \
--no-confirm \
--allow-branch '*'
'''
[tasks."version/cargo"]
usage = '''
arg "<version>" help="Version to apply"
'''
run = '''
cargo release version {{usage.version}} \
--workspace \
--exclude litty \
--exclude litty_macro \
--exclude litty_macro_tests \
--exclude toml_ext \
--exclude genotype_runtime \
--exclude genotype_json_types \
--no-confirm \
--execute
'''