forked from answerdigital/AnswerKing-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 666 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 666 Bytes
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: clean test lint migrate
clean:
-rm -rf htmlcov
-rm -rf .coverage
-rm -rf build
-rm -rf dist
-rm -rf src/*.egg-info
lint:
poetry run black . --line-length=79
poetry run pycodestyle . --max-line-length=100
poetry run pyright
test: clean
poetry run coverage run --omit=*/migrations/*,*answerking/*,*/tests/*,*manage.py manage.py test --noinput
poetry run coverage report
poetry run coverage html
migrate:
poetry run python manage.py makemigrations
poetry run python manage.py migrate
dockerRunserver:
poetry run python manage.py waitForDB
poetry run python manage.py migrate
poetry run python manage.py runserver 0:8000
prepare: lint test