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