-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmise.toml
More file actions
48 lines (39 loc) · 1.66 KB
/
Copy pathmise.toml
File metadata and controls
48 lines (39 loc) · 1.66 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
# mise-en-place: dev toolchain + tasks for vihaco.
# Quick start:
# mise install # install rust, node, prek, hawkeye
# mise run setup # install the git pre-commit hooks
# mise run test # run the test suite
# Docs: https://mise.jdx.dev
[tools]
rust = "stable" # edition 2024 needs >= 1.85
node = "lts" # docs/ is an Astro site (needs Node >= 20)
prek = "latest" # aqua:j178/prek — fast pre-commit runner
"cargo:hawkeye" = "latest" # SPDX license-header tool (reads licenserc.toml)
release-plz = "latest" # dry-run the release locally (see `mise run release-preview`)
[tasks.setup]
description = "Install the git pre-commit hooks (prek)"
run = "prek install"
[tasks.test]
description = "Run the workspace test suite (excludes doctests)"
run = "cargo test --workspace --all-targets"
[tasks.doctest]
description = "Run the guide / doc tests"
run = "cargo test --workspace --doc"
[tasks.fmt]
description = "Format all crates"
run = "cargo fmt --all"
[tasks.lint]
description = "Clippy with warnings denied"
run = "cargo clippy --workspace --all-targets -- -D warnings"
[tasks.release-preview]
description = "Preview the next release: version bump + CHANGELOG.md, written in place"
# `update` is the local half of `release-pr`: it computes the next version and
# rewrites Cargo.toml/CHANGELOG.md on disk, but talks to no git remote, opens no
# PR and publishes nothing. Inspect with `git diff`, then `git checkout .`.
run = "release-plz update"
[tasks.license]
description = "Check SPDX license headers"
run = "hawkeye check"
[tasks.license-fix]
description = "Add or repair SPDX license headers in place"
run = "hawkeye format"