A project's tasks are mise's: mise tasks lists them, mise run TASK runs one. The devkit command sets
devkit up in a project, updates and checks it; devkit TASK runs a mise task too. devkit without a
command lists its commands and the project's tasks, devkit COMMAND --help a command's options.
| command | does |
|---|---|
devkit init |
copies devkit into the project and sets it up, see init |
devkit update |
merges a newer devkit in, see Updating |
devkit doctor |
what keeps lint or the hook from running, what is edited or out of date, see doctor |
devkit TASK |
any other word runs mise run TASK, the arguments after it too |
devkit's tasks, in devkit.toml. A task of the same name in mise.toml overrides devkit's.
| task | does |
|---|---|
check |
every check: lint and test, as CI, patch and the release workflow run them |
test |
the project's tests, which mise.toml defines; devkit's warns there are none, or fails with Python |
lint |
the checks over the files lint takes, see Checks |
fix |
fixes what markdownlint, the hygiene steps, wrap and ruff can, then checks the rest |
links |
external links alive with lychee: other people's servers, on demand |
secrets |
gitleaks over the whole git history: a leak stays there after its fix |
hooks |
installs the git pre-commit hook: lint over the staged files, rewriting nothing |
patch, minor, major, release, up, clean |
with releases = python, see Releases |
Arguments after -- reach hk: mise run lint -- --junit-xml hk.xml, mise run lint -- --step typos.
The tasks run scripts in .config/mise/tasks/devkit/, as hidden mise tasks: mise tasks --hidden lists
them. They seldom need running by hand:
| helper | does |
|---|---|
devkit:files |
prints the files lint takes, NUL-separated: what git sees, and the pages uwiki reads, gitignored ones too; mise run -q devkit:files | xargs -0 ls shows them |
devkit:leaks [GITLEAKS OPTIONS] |
gitleaks dir over the working tree, allowing what git ignores, with the rules of .gitleaks.toml when there is one |
devkit:version, devkit:bump PART, devkit:release, devkit:up |
with releases = python: what the release tasks run |
They take the answers they need from devkit.toml [env]: DEVKIT_VAULT, and with releases
DEVKIT_VERSION_FILE, DEVKIT_BRANCH, DEVKIT_PACKAGE, DEVKIT_COMMAND.
devkit init [-d KEY=VALUE]... [--defaults] [--ref REF] [--src SRC] [--no-hooks]
- copier copies the template at the tag of this devkit,
vand its version, or--ref;--srctakes another template, a local checkout for one mise truston both mise configs,mise installmise run hooks, unless--no-hooksor acore.hooksPathrules git's hooks- lists what the project still has that devkit does now, see Setup
It refuses a project with .copier-answers.yml: that one is on devkit, devkit update is next.
devkit doctor [--offline] reads, changes nothing, exits 1 on a problem. Problems keep lint or the hook
from running as they should:
- a mise config not trusted: mise ignores it
- a tool not installed
- no uwiki pinned, or a uwiki before 0.30.0, which the page steps need
core.hooksPathset: git runs those hooks, never hk's- no hk pre-commit hook
Notes are what is out of date or odd:
- a file of devkit's edited or removed: doctor renders the template at the project's release with its
answers and compares; the next
devkit updaterewrites the file, so the change belongs in the project's own file or in the template..vale.iniis left out: it keeps the project's own lines - what a project set up before devkit still has, as init lists it
- this devkit older than the template release the project is on:
mise up pipx:hiqdev/devkit - a mise task named like a devkit command: the command wins,
mise runreaches the task - a Vale package not synced yet: lint syncs it
- neither
AGENTS.mdnorCLAUDE.mdpoints to.config/devkit/AGENTS.md - a newer devkit or uwiki release;
--offlineskips asking GitHub, and the edits check of a template that is not a local checkout