-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 780 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 780 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
PYTHON := python3
PIP := pip3
APP_DIR := app
.PHONY: setup run lint format test docker-build docker-up docker-down migrate revision
setup:
$(PIP) install -r $(APP_DIR)/requirements.txt
run:
uvicorn src.main:create_app --factory --host 0.0.0.0 --port 8000 --app-dir $(APP_DIR) --reload
lint:
black --check $(APP_DIR) tests
isort --check-only $(APP_DIR) tests
flake8 $(APP_DIR) tests
format:
black $(APP_DIR) tests
isort $(APP_DIR) tests
test:
pytest -q
revision:
alembic -c $(APP_DIR)/alembic.ini revision -m "manual"
migrate:
alembic -c $(APP_DIR)/alembic.ini upgrade head
docker-build:
docker compose -f infra/docker-compose.yml build
docker-up:
docker compose -f infra/docker-compose.yml up
docker-down:
docker compose -f infra/docker-compose.yml down -v