-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (40 loc) · 1015 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
49 lines (40 loc) · 1015 Bytes
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
version: "3"
vars:
VENV_PYTHON: ui/backend/.venv/bin/python3
tasks:
test:
desc: Run all unit tests
cmds:
- "{{.VENV_PYTHON}} -m pytest tests/ -v"
test:workspace:
desc: Run workspace tests only
cmds:
- "{{.VENV_PYTHON}} -m pytest tests/test_workspace.py -v"
test:ui:
desc: Run UI backend tests only
cmds:
- "{{.VENV_PYTHON}} -m pytest tests/test_ui.py -v"
lint:
desc: Run ruff format check and lint
cmds:
- ruff format --check scripts/ ui/backend/
- ruff check scripts/ ui/backend/
typecheck:
desc: Run pyright and tsc
cmds:
- pyright scripts/ ui/backend/
- npx tsc --noEmit --project ui/frontend/tsconfig.json
fmt:
desc: Auto-format Python files
cmds:
- ruff format scripts/ ui/backend/
build:
desc: Build the frontend
cmds:
- npm run build --prefix ui/frontend
check:
desc: Run all checks (fmt, lint, test)
cmds:
- task: fmt
- task: lint
- task: test