-
Notifications
You must be signed in to change notification settings - Fork 459
/
Makefile
29 lines (21 loc) · 657 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
.PHONY: init build test migrate runserver run-hooks docs update-deps
init:
poetry install --all-extras
build:
poetry run pybabel compile --domain django --directory djoser/locale -f
poetry build
test:
poetry run py.test --capture=no --cov-report term-missing --cov-report html --cov=djoser testproject/
poetry run coverage xml
migrate:
poetry run python testproject/manage.py migrate
runserver:
poetry run python testproject/manage.py runserver
run-hooks:
poetry run pre-commit run --all-files --show-diff-on-failure
docs:
poetry config virtualenvs.create false
poetry install --only docs
cd docs && make html
update-deps:
poetry update