-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
75 lines (61 loc) · 1.74 KB
/
Copy pathTaskfile.yml
File metadata and controls
75 lines (61 loc) · 1.74 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
# orelhIA Taskfile (alternativa cross-platform ao Makefile)
# https://taskfile.dev
# Install: https://taskfile.dev/installation
# Usage: task dev / task test / task bootstrap
version: '3'
vars:
PYTHON: '{{default "python3.12" .PYTHON}}'
tasks:
default:
cmds:
- task --list
silent: true
install:
desc: Instala dependências (uv sync --extra dev --extra record)
cmds:
- uv sync --extra dev --extra record
dev:install
desc: Setup completo: install + bootstrap + smoke test
cmds:
- task: install
- task: bootstrap
- task: test
test:
desc: Roda pytest
cmds:
- uv run pytest tests/ -v
lint:
desc: Roda ruff check
cmds:
- uv run ruff check server.py parakeet_bootstrap.py orelhIA/ tests/
format:
desc: Roda ruff format
cmds:
- uv run ruff format server.py parakeet_bootstrap.py orelhIA/ tests/
clean:
desc: Remove cache e build artifacts
cmds:
- rm -rf .pytest_cache .ruff_cache __pycache__ */__pycache__ */*/__pycache__
- rm -rf .venv dist build *.egg-info
run:
desc: Roda MCP server (stdio, pra usar com pi)
cmds:
- uv run python -m orelhIA
cli:
desc: Roda CLI standalone. Uso: task cli AUDIO=audio.ogg [LANG=pt]
cmds:
- uv run python -m orelhIA.cli {{.AUDIO}} -l {{default "pt" .LANG}}
bootstrap:
desc: Instala Docker + container Parakeet (idempotente)
cmds:
- uv run python -m parakeet_bootstrap
health:
desc: Health check do backend
cmds:
- uv run python -c "import orelhIA; h = orelhIA.health(); print('ok:', h.get('ok')); print('models:', h.get('models', []))"
all:
desc: Tudo: dev + test + lint
cmds:
- task: dev
- task: test
- task: lint