repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

mise.toml

Raw
File outline
[tools]
bun = "1.3.14"
biome = "2.4.15"
ruff = "0.15.14"
dprint = "0.54.0"
markdownlint-cli2 = "0.22.1"
yamlfmt = "0.21.0"
"aqua:nushell/nushell" = "0.112.2"
"github:razziel89/mdslw" = "0.17.1"

[tasks.default]
description = "List tasks"
run = "mise tasks ls"

[tasks.list]
description = "List extensions"
run = "python3 scripts/extensions.py list \"$@\""

[tasks.fmt]
description = "Format repo"
run = [
  "biome check --write .",
  "ruff format .",
  "dprint fmt",
  "python3 scripts/mdslw.py",
  "yamlfmt .",
]

[tasks.lint]
description = "Verify formatting and lint"
run = [
  "biome ci .",
  "ruff format --check .",
  "ruff check .",
  "dprint check",
  "python3 scripts/mdslw.py --mode check",
  "markdownlint-cli2",
  "yamlfmt -lint .",
]

[tasks.test]
description = "Run tests"
run = "python3 scripts/extensions.py test \"$@\""

[tasks.build]
description = "Validate/build extension packages"
run = "python3 scripts/extensions.py check \"$@\""

[tasks.ci]
description = "Release gate"
run = ["mise run lint", "mise run test", "mise run build"]

[tasks.changelog]
description = "Generate changelog"
run = "python3 scripts/extensions.py changelog \"$@\""

[tasks.readme]
description = "Generate/update READMEs"
run = "python3 scripts/extensions.py readme --write \"$@\""

[tasks.demo]
description = "Record demo GIFs"
run = "python3 scripts/demo.py \"$@\""

[tasks.publish]
description = "Publish after release gate"
depends = ["ci"]
run = "PI_EXT_CI_DONE=1 python3 scripts/extensions.py publish \"$@\""

[tasks.goal-pexpect]
description = "Run goal pexpect test"
run = "python3 -c 'import subprocess, sys; args = sys.argv[1:]; subprocess.run([\"python3\", \"scripts/test_goal_pexpect.py\", *(([\"--idea\", args[0], *args[1:]]) if args and not args[0].startswith(\"-\") else args)], check=True)'"