|
1 | | - |
2 | 1 | [env] |
3 | 2 | _.path = ['{{config_root}}/node_modules/.bin'] |
4 | 3 | _.python.venv = { path = "venv", create = true } |
5 | 4 |
|
| 5 | +[settings] |
| 6 | +python.compile = false |
| 7 | +experimental = true |
| 8 | + |
| 9 | +[hooks] |
| 10 | +postinstall = "mise run install" |
| 11 | + |
6 | 12 | [tools] |
7 | 13 | go = "1.25.3" |
8 | 14 | node = "24.6.0" |
9 | | -python = "3.9.0" |
| 15 | +python = "3.9.14" |
10 | 16 | golangci-lint = "2.4.0" |
11 | 17 |
|
12 | 18 | [tasks."init"] |
@@ -39,65 +45,59 @@ depends = ["install:*"] |
39 | 45 |
|
40 | 46 | [tasks."commit-msg"] |
41 | 47 | description = "Run commit-msg hooks" |
42 | | -run = [ |
43 | | - "npx commitlint --edit $1", |
44 | | -] |
| 48 | +run = ["npx commitlint --edit $1"] |
45 | 49 |
|
46 | 50 | [tasks."pre-commit"] |
47 | 51 | description = "Run pre-commit tasks" |
48 | | -run = "pre-commit" |
| 52 | +run = "python -m pre_commit" |
| 53 | + |
| 54 | +[tasks."post-commit"] |
| 55 | +description = "Run post-commit tasks" |
| 56 | +run = "{{config_root}}/scripts/post-commit" |
49 | 57 |
|
50 | 58 | [tasks."lint"] |
51 | | -run = [ |
52 | | - "golangci-lint run", |
53 | | -] |
| 59 | +run = ["golangci-lint run"] |
54 | 60 |
|
55 | 61 | [tasks."fmt"] |
56 | | -run = [ |
57 | | - "go mod tidy", |
58 | | - "env GOFUMPT_SPLIT_LONG_LINES=on golangci-lint fmt ./...", |
59 | | -] |
| 62 | +run = ["go mod tidy", "env GOFUMPT_SPLIT_LONG_LINES=on golangci-lint fmt ./..."] |
60 | 63 |
|
61 | 64 | [tasks."prepush"] |
62 | 65 | depends = ["fmt", "lint", "test"] |
63 | 66 |
|
64 | 67 | [tasks."test:config"] |
65 | | -run = [ |
66 | | - "golangci-lint config verify", |
67 | | -] |
| 68 | +run = ["golangci-lint config verify"] |
68 | 69 |
|
69 | 70 | [tasks."regenerate:e2e"] |
70 | | -run = [ |
71 | | - "go tool gotestsum -- -v ./test/... --count=1 -update", |
72 | | -] |
| 71 | +run = ["go tool gotestsum -- -v ./test/... --count=1 -update"] |
73 | 72 |
|
74 | 73 | [tasks."test"] |
75 | 74 | depends = ["test:*", "test_unit", "test_e2e"] |
76 | 75 |
|
77 | 76 | [tasks."coverage"] |
78 | 77 | run = [ |
79 | | - "go tool gocovmerge integration.txt unit.txt > coverage.txt", |
80 | | - "go tool cover -html=coverage.txt -o coverage.html", |
81 | | - "go tool gocover-cobertura <coverage.txt >coverage.xml" |
| 78 | + "go tool gocovmerge integration.txt unit.txt > coverage.txt", |
| 79 | + "go tool cover -html=coverage.txt -o coverage.html", |
| 80 | + "go tool gocover-cobertura <coverage.txt >coverage.xml", |
82 | 81 | ] |
83 | | -sources = [ "integration.txt", "unit.txt"] |
| 82 | +sources = ["integration.txt", "unit.txt"] |
84 | 83 | outputs = ["coverage.html", "coverage.xml"] |
85 | 84 |
|
86 | 85 | [tasks.bin-package] |
87 | 86 | description = "Build bubbletea example package" |
88 | 87 | run = [ |
89 | 88 | "cd bin/${PACKAGE} && go build -o ./dist/${PACKAGE}", |
90 | 89 | "mkdir -p ./dist", |
91 | | - "cp bin/${PACKAGE}/dist/${PACKAGE} ./dist/${PACKAGE}" |
| 90 | + "cp bin/${PACKAGE}/dist/${PACKAGE} ./dist/${PACKAGE}", |
92 | 91 | ] |
93 | | -outputs = [ "dist/${PACKAGE}" ] |
94 | | -sources = [ "bin/${PACKAGE}/**" ] |
| 92 | +outputs = ["dist/${PACKAGE}"] |
| 93 | +sources = ["bin/${PACKAGE}/**"] |
95 | 94 |
|
96 | 95 | [tasks.bin] |
97 | 96 | description = "Build all bubbletea example packages" |
98 | 97 | run = [ |
| 98 | + "mkdir -p ./dist/", |
99 | 99 | "PACKAGE=editors mise run bin-package", |
100 | | - "PACKAGE=list mise run bin-package" |
| 100 | + "PACKAGE=list mise run bin-package", |
101 | 101 | ] |
102 | 102 | outputs = ["dist/editors", "dist/list"] |
103 | 103 | sources = ["bin/**"] |
0 commit comments