-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (27 loc) · 804 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
lint:
poetry run flake8 task_manager
test:
poetry run python3 manage.py test
test-coverage:
poetry run coverage run manage.py test
poetry run coverage report -m --include=task_manager/* --omit=task_manager/settings.py
poetry run coverage xml --include=task_manager/* --omit=task_manager/settings.py
install:
poetry install
selfcheck:
poetry check
check: selfcheck test-coverage lint
dev:
poetry run python manage.py runserver
migrate:
poetry run python manage.py makemigrations
poetry run python manage.py migrate
PORT ?= 8000
start:
poetry run gunicorn -w 5 -b 0.0.0.0:$(PORT) task_manager.wsgi
shell:
poetry run python manage.py shell_plus --ipython
makemessages:
django-admin makemessages --ignore="static" --ignore=".env" -l ru
compilemessages:
django-admin compilemessages