-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·80 lines (61 loc) · 1.56 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
MANAGE := poetry run python manage.py
.PHONY: runserver
runserver:
@$(MANAGE) runserver --settings=educa.settings.local
.PHONY: plusrunserver
plusrunserver:
@$(MANAGE) runserver_plus --cert-file cert.crt
.PHONY: makemigrations
makemigrations:
@$(MANAGE) makemigrations
.PHONY: migrate
migrate:
@$(MANAGE) migrate
.PHONY: collectstatic
collectstatic:
@$(MANAGE) collectstatic
.PHONY: shell
shell:
@$(MANAGE) shell_plus
.PHONY: install
install:
poetry install
.PHONY: flake8
flake8:
poetry run flake8 educa
.PHONY: black-check
black-check:
poetry run black --check educa
# poetry run black --check --exclude=migrations educa (без настроек в pyproject)
.PHONY: black-diff
black-diff:
poetry run black --diff educa
# poetry run black --diff --exclude=migrations educa (без настроек в pyproject)
.PHONY: black
black:
poetry run black educa
# poetry run black --exclude=migrations educa (без настроек в pyproject)
.PHONY: isort-check
isort-check:
poetry run isort educa --check-only
.PHONY: isort-diff
isort-diff:
poetry run isort educa --diff
.PHONY: isort
isort:
poetry run isort educa
.PHONY: exportreq
exportreq:
poetry export -f requirements.txt --output requirements.txt
.PHONY: makemessages
makemessages:
poetry run django-admin makemessages --all
.PHONY: compilemessages
compilemessages:
poetry run django-admin compilemessages --ignore .venv
.PHONY: test
test:
poetry run pytest
.PHONY: test-coverage
test-coverage: # запись покрытия для CodeClimate
poetry run pytest --cov=educa --cov-report xml