-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
66 lines (45 loc) · 1.32 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ifneq (, $(wildcard ./.env))
include .env
export
ENV_FILE_PARAM = --env-file .env
endif
build:
docker compose up --build -d --remove-orphans
up:
docker compose up -d
down:
docker compose down
show-logs:
docker compose logs
migrate:
docker compose exec api python3 manage.py migrate
makemigrations:
docker compose exec api python3 manage.py makemigrations
superuser:
docker compose exec api python3 manage.py createsuperuser
collectstatic:
docker compose exec api python3 manage.py collectstatic --no-input
down-v:
docker compose down -v
volume:
docker volume inspect real_estate_postgres_data
estate-db:
docker compose exec postgres-db psql --username=postgres --dbname=real_estate
test:
docker compose exec api pytest -p no:warnings --cov=.
test-html:
docker compose exec api pytest -p no:warnings --cov=. --cov-report html
flake8:
docker compose exec api flake8 .
black-check:
docker compose exec api black --check --exclude=migrations .
black-diff:
docker compose exec api black --diff --exclude=migrations .
black:
docker compose exec api black --exclude=migrations .
isort-check:
docker compose exec api isort . --check-only --skip env --skip migrations
isort-diff:
docker compose exec api isort . --diff --skip env --skip migrations
isort:
docker compose exec api isort . --skip env --skip migrations