-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (37 loc) · 952 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
39
40
41
42
43
44
45
46
47
48
49
50
51
# starting server
dev:
python3 manage.py runserver
start:
poetry run gunicorn english_exercises_app.wsgi --timeout 300
# poetry commands for test
github-install:
poetry build
poetry install
install:
poetry build
poetry install
poetry shell
python3 manage.py collectstatic --noinput
# performing checks, formatting and lint
selfcheck:
poetry check
sort:
isort .
test:
python3 manage.py test
lint:
poetry run flake8 english_exercises_app
check: sort selfcheck test lint
check-ci: selfcheck lint
# django-admin commands
shell:
django-admin shell
trans:
django-admin makemessages -l ru --ignore=static
compile:
django-admin compilemessages
# test coverage reports
make test-coverage:
poetry run coverage run --source='.' manage.py test task_manager
poetry run coverage xml -o coverage.xml
.PHONY: dev start selfcheck test lint check trans compile sort test-coverage install