-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
38 lines (24 loc) · 663 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
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: makemigrations
makemigrations:
docker-compose run --rm web python manage.py makemigrations
.PHONY: migrate
migrate:
docker-compose run --rm web python manage.py migrate
.PHONY: dshell
dshell:
docker-compose run --rm web python manage.py shell
.PHONY: flake
flake:
docker-compose run --rm web flake8 . | grep -v migrations | grep -v 'dao.py'
.PHONY: pytest
pytest:
docker-compose run --rm web pytest
.PHONY: test
test:
docker-compose run --rm web python manage.py test
.PHONY: mypy
mypy:
docker-compose run --rm web mypy .
.PHONY: psql
psql:
docker-compose run --rm postgres psql --host=postgres --dbname=postgres --username=postgres