diff --git a/mise.toml b/mise.toml index 6dd983f6..6e201cdb 100644 --- a/mise.toml +++ b/mise.toml @@ -1,34 +1,21 @@ [tools] # Language runtimes -node = "latest" -python = "latest" rust = "latest" -go = "latest" zig = "latest" -java = "latest" bun = "latest" denojs = "latest" # Package managers -npm = "latest" -yarn = "latest" pnpm = "latest" -pip = "latest" cargo = "latest" go-task = "latest" # Formatting & Linting -gofmt = "latest" -black = "latest" -isort = "latest" -ruff = "latest" -prettier = "latest" shfmt = "latest" stylua = "latest" # Build tools cmake = "latest" -make = "latest" ninja = "latest" # Shell tools @@ -38,20 +25,29 @@ gnu-tar = "latest" gnu-grep = "latest" # Testing -vitest = "latest" -pytest = "latest" -jest = "latest" [env] # Common environment variables -NODE_ENV = "development" -PYTHONDONTWRITEBYTECODE = "1" -PYTHONUNBUFFERED = "1" # Task runner alias [alias] task = "go-task" -build = "cargo build --release || npm run build || go build" -test = "cargo test || npm test || go test ./..." -lint = "ruff check . || prettier --check . || black --check ." -fmt = "ruff format . || prettier --write . || black ." + +# Runnable tasks. The root has no Cargo.toml, so run from the crate. +# Prettier is not a mise tool: it needs Node, which is banned by +# LANGUAGE-POLICY, and canonical JSON here must not be reformatted. +[tasks.build] +dir = "robot-repo-automaton" +run = "cargo build --release" + +[tasks.test] +dir = "robot-repo-automaton" +run = "cargo test" + +[tasks.lint] +dir = "robot-repo-automaton" +run = "cargo fmt --check" + +[tasks.fmt] +dir = "robot-repo-automaton" +run = "cargo fmt"