huesoporro/Makefile
cătălin 152546982c
refactor: many changes
- Add missing actions and make a clear boundary between actions,
  services and nfra (i.e: actions shouldn't use stuff from infra/)
- Delete stuff not in use: tts, gtts, etc
- Add a ton of tests
2025-03-05 11:34:44 +01:00

28 lines
No EOL
593 B
Makefile

PROJECT_NAME := "huesoporro"
PROJECT_TAG := "latest"
PROJECT_TARGET := "serve"
fmt:
uvx pre-commit run --all-files --color always
fmt--mypy:
uvx pre-commit run --all-files --color always mypy
fmt--add-noqa:
uvx ruff check --add-noqa .
.PHONY: tests
tests:
uv run pytest --cov=src -vv tests
uv run coverage html
uv run coverage xml
serve:
uv run python -m src.apps.httpapi.litestar.main
build:
docker build . -t git.roboces.dev/catalin/$(PROJECT_NAME):$(PROJECT_TAG) --target $(PROJECT_TARGET)
migrate:
uv run caribou upgrade ~/.local/share/huesoporro/huesoporro.db migrations/