-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (20 loc) · 1010 Bytes
/
Makefile
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
run:
source ./venv/bin/activate && uvicorn --reload --log-config logging_dev.conf marketing_api.routes.base:app
configure: venv
source ./venv/bin/activate && pip install -r requirements.dev.txt -r requirements.txt
venv:
python3.11 -m venv venv
format:
source ./venv/bin/activate && autoflake -r --in-place --remove-all-unused-imports ./marketing_api
source ./venv/bin/activate && isort ./marketing_api
source ./venv/bin/activate && black ./marketing_api
source ./venv/bin/activate && autoflake -r --in-place --remove-all-unused-imports ./tests
source ./venv/bin/activate && isort ./tests
source ./venv/bin/activate && black ./tests
source ./venv/bin/activate && autoflake -r --in-place --remove-all-unused-imports ./migrations
source ./venv/bin/activate && isort ./migrations
source ./venv/bin/activate && black ./migrations
db:
docker run -d -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust --name db-marketing-backend postgres:15
migrate:
source ./venv/bin/activate && alembic upgrade head