Files
tgit/Makefile
T
ElebobaandClaude Opus 5.5 8dfcef94c9 feat(infra): каркас проекта — uv, ruff, mypy, pytest, Docker Compose
- pyproject: Python 3.12, зависимости ADR-009, ruff/mypy strict/pytest/coverage
- app/: точка входа-заглушка с graceful shutdown по SIGTERM
- Dockerfile: multi-stage, uv, non-root (uid 10001), git+ssh для коммитов (#9);
  apt по HTTPS — в некоторых сетях обычный HTTP к deb.debian.org заблокирован
- docker-compose: bot + postgres 16, healthcheck, лимиты памяти, ротация логов
- Makefile: install/lint/fmt/test/cov/up/down/logs/ps; .env.example

Refs #3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 23:14:53 +03:00

33 lines
518 B
Makefile

.PHONY: install lint fmt typecheck test cov up down logs ps
install:
uv sync
lint:
uv run ruff check .
uv run ruff format --check .
uv run mypy
fmt:
uv run ruff check --fix .
uv run ruff format .
test:
uv run pytest -q
cov:
uv run pytest -q --cov --cov-report=term
up:
@test -f .env || { cp .env.example .env; echo "created .env from .env.example — fill in the secrets"; }
docker compose up -d --build
down:
docker compose down
logs:
docker compose logs -f --tail=100 bot
ps:
docker compose ps