-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy pathmise.toml
More file actions
144 lines (120 loc) · 3.86 KB
/
mise.toml
File metadata and controls
144 lines (120 loc) · 3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[tools]
# runtime
"lima" = "2.0.3"
packer = "latest"
# Python
uv = "latest"
# Node.js
nodejs = "24"
pnpm = "10"
# Java
java = "21"
maven = "latest"
# Kubernetes
helm = "latest"
kubeconform = "latest"
# misc
yq = "latest"
"pipx:toml-cli" = "latest"
fd = "latest"
"github:google/addlicense" = "latest"
gum = "latest"
hadolint = "latest"
lychee = "latest"
"github:telepresenceio/telepresence" = "latest"
[settings]
experimental = true # for task_templates and python.uv_venv_auto
python.uv_venv_auto = true
task.disable_spec_from_run_scripts = true # opt-in to new task behavior
[hooks]
postinstall = ["{{ mise_bin }} setup"]
[env]
UV_PYTHON_PREFERENCE = "only-managed"
[task_templates."python:setup"]
run = "uv sync --all-extras --dev"
sources = ["uv.lock", "pyproject.toml"]
outputs = { auto = true }
[task_templates."python:check:ruff"]
run = "uv run ruff check --quiet"
sources = ["src/**/*.py"]
outputs = { auto = true }
[task_templates."python:check:ruff-format"]
run = "uv run ruff format --quiet --check"
sources = ["src/**/*.py"]
outputs = { auto = true }
[task_templates."python:check:pyrefly"]
run = "uv run pyrefly check src"
sources = ["src/**/*.py"]
outputs = { auto = true }
[task_templates."python:check:pytest-marks"]
run = """
#!/bin/bash
unmarked_tests=$(uv run pytest --collect-only --no-header --no-summary -q -m "not (unit or integration or e2e)" tests/ 2>/dev/null)
if echo "$unmarked_tests" | grep "tests collected" | grep -qv "no tests collected"; then
echo "ERROR: Found tests without required pytest marks:\n"
echo "$unmarked_tests" | grep 'tests collected'
echo ""
echo "All tests must be marked with @pytest.mark.unit, @pytest.mark.integration, or @pytest.mark.e2e"
exit 1
else
echo "✓ All tests have pytest marks"
fi
"""
sources = ["tests/**/*.py"]
outputs = { auto = true }
[task_templates."python:fix:ruff"]
run = "uv run ruff check --quiet --fix"
sources = ["src/**/*.py"]
outputs = { auto = true }
[task_templates."python:fix:ruff-format"]
run = "uv run ruff format --quiet"
sources = ["src/**/*.py"]
outputs = { auto = true }
[task_templates."node:check:prettier"]
run = "pnpm prettier --log-level silent --check src"
sources = ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx", "src/**/*.html", "src/**/*.css", "src/**/*.scss"]
outputs = { auto = true }
[task_templates."node:check:eslint"]
run = "pnpm eslint ."
sources = ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
outputs = { auto = true }
[task_templates."node:check:tsc"]
run = "pnpm tsc --noEmit"
sources = ["src/**/*.ts", "src/**/*.tsx"]
outputs = { auto = true }
[task_templates."node:check:stylelint"]
run = 'pnpm stylelint --fix "src/**/*.{css,scss}"'
sources = ["src/**/*.css", "src/**/*.scss"]
outputs = { auto = true }
[task_templates."node:fix:prettier"]
run = "pnpm prettier --log-level silent --write src"
sources = ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx", "src/**/*.html", "src/**/*.css", "src/**/*.scss"]
outputs = { auto = true }
[task_templates."node:fix:eslint"]
run = "pnpm eslint . --fix"
sources = ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
outputs = { auto = true }
[task_templates."node:fix:stylelint"]
run = 'pnpm stylelint --fix "src/**/*.{css,scss}"'
sources = ["src/**/*.css", "src/**/*.scss"]
outputs = { auto = true }
[task_templates."docker:check:hadolint"]
run = "hadolint --ignore DL3018 Dockerfile"
sources = ["Dockerfile"]
outputs = { auto = true }
[task_config]
includes = [
"./tasks.toml",
"helm/tasks.toml",
"apps/agentstack-cli/tasks.toml",
"apps/agentstack-sdk-py/tasks.toml",
"apps/agentstack-server/tasks.toml",
"apps/agentstack-ui/tasks.toml",
"apps/keycloak-theme/tasks.toml",
"apps/beeai-web/tasks.toml",
"apps/agentstack-sdk-ts/tasks.toml",
"apps/supergateway/tasks.toml",
"apps/microshift-vm/tasks.toml",
"agents/tasks.toml",
"docs/tasks.toml",
]