-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (20 loc) · 986 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 achievement_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 ./achievement_api
source ./venv/bin/activate && isort ./achievement_api
source ./venv/bin/activate && black ./achievement_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-achievement_api postgres:15
migrate:
alembic upgrade head