repositories / pi-ext
pi-ext
bugabingas pi extensions
owned by bugabinga
mise.toml
RawFile outline
- tools line 1
- tasks.default line 9
- tasks.fmt line 13
- tasks.lint line 20
- tasks.test line 28
- tasks.check line 32
- tasks.ci line 36
- tasks.list line 40
- tasks.changelog line 44
- tasks.readme line 48
- tasks.demo line 52
- tasks.clean line 56
- tasks.publish line 66
- tasks.pre-commit line 71
- tasks.pre-push line 75
- tasks.goal-pexpect line 79
[tools]
node = "22"
biome = "2.4.15"
ruff = "0.15.14"
dprint = "0.54.0"
markdownlint-cli2 = "0.22.1"
"aqua:nushell/nushell" = "0.112.2"
[tasks.default]
description = "List tasks"
run = "mise tasks ls"
[tasks.fmt]
description = "Format repo"
run = [
"npm run fmt",
"dprint fmt",
]
[tasks.lint]
description = "Verify formatting and lint"
run = [
"npm run lint",
"dprint check",
"python3 scripts/check_skills.py",
]
[tasks.test]
description = "Run tests"
run = "npm run test"
[tasks.check]
description = "Static extension checks"
run = "npm run check"
[tasks.ci]
description = "Release gate"
run = ["mise run lint", "mise run test", "mise run check"]
[tasks.list]
description = "List extensions"
run = "python3 scripts/extensions.py list \"$@\""
[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.clean]
description = "Remove generated caches and scratch artifacts"
run = '''
mkdir -p .demo
find .demo -mindepth 1 -maxdepth 1 -exec rm -rf {} +
find . -path ./.git -prune -o -path ./.jj -prune -o -type d -name node_modules -prune -exec rm -rf {} +
find . -path ./.git -prune -o -path ./.jj -prune -o -type d -name __pycache__ -prune -exec rm -rf {} +
rm -rf .ruff_cache extensions/diff-review/static
'''
[tasks.publish]
description = "Publish after release gate"
depends = ["ci"]
run = "PI_EXT_CI_DONE=1 python3 scripts/extensions.py publish \"$@\""
[tasks.pre-commit]
description = "Pre-commit hook: fmt + lint + test"
run = ["mise run fmt", "mise run lint", "mise run test"]
[tasks.pre-push]
description = "Pre-push hook: full CI"
run = "mise run ci"
[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)'"