Files

23 lines
431 B
Makefile

.PHONY: install lint test migrate seed run
PYTHON := /mnt/d/Python/Python39/python.exe
PYTHON_NO_CACHE := $(PYTHON) -B
install:
$(PYTHON) -m pip install -e ".[dev]"
lint:
$(PYTHON_NO_CACHE) -m ruff check .
test:
$(PYTHON_NO_CACHE) -m pytest
migrate:
$(PYTHON_NO_CACHE) -m alembic upgrade head
seed:
$(PYTHON_NO_CACHE) scripts/seed_topics.py
run:
$(PYTHON_NO_CACHE) -m uvicorn app.main:app --host 127.0.0.1 --port 8010