version: '3'
tasks:
default:
desc: Run lock, format, and all checks
cmds:
- task: lock
- task: format
- task: check
- task: test
check:
desc: Run all quality checks (ruff, format-check, mypy)
deps: [ruff-check, format-check, ty, mypy]
mypy:
desc: Run type checking with mypy
cmd: uv run mypy .
ty:
desc: Run type checking with ty
cmd: uv run ty check .
ruff-check:
desc: Run ruff linter
cmd: uv run ruff check .
format:
desc: Auto-format code with ruff
cmds:
- uv run ruff format .
- uv run ruff check --select I,F401 --fix .
format-check:
desc: Check code formatting without modifying files
cmd: uv run ruff format --check .
lock:
desc: Update lock file and sync dependencies
cmds:
- uv lock
- uv sync --dev
test:
desc: Run all tests
cmd: uv run pytest
test-cov:
desc: Run tests with HTML coverage report
cmds:
- uv run pytest --cov-report=html
- echo "Coverage report generated in htmlcov/index.html"
mcpb:
desc: Build MCPB package
cmds:
- mcpb validate manifest.json
- mcpb pack .