-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
51 lines (42 loc) · 1010 Bytes
/
Copy pathTaskfile.yaml
File metadata and controls
51 lines (42 loc) · 1010 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
50
51
version: '3'
tasks:
# Development
dev:
desc: Run development server
cmd: uv run uvicorn app.main:app --reload
# Testing
test:
desc: Run tests
cmd: uv run pytest tests/ -v
env:
OTEL_SDK_DISABLED: "true"
test:cov:
desc: Run tests with coverage
cmd: uv run pytest tests/ -v --cov=app --cov-report=term-missing
env:
OTEL_SDK_DISABLED: "true"
# Linting
lint:
desc: Run ruff linter
cmd: uv run ruff check app/ tests/ --fix
typecheck:
desc: Run mypy type checker
cmd: uv run mypy app/ --ignore-missing-imports
# All checks
check:
desc: Run all checks (lint, typecheck, test)
cmds:
- task: lint
- task: typecheck
- task: test
# Dependencies
sync:
desc: Sync dependencies
cmd: uv sync
# Docker
docker:build:
desc: Build Docker image
cmd: docker build -t chat-api:local .
docker:run:
desc: Run Docker container
cmd: docker run -p 8000:8000 --env-file .env chat-api:local