Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
1 change: 1 addition & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8",
extra="ignore",
)


Expand Down