forked from tough-dev-school/education-backend
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
34 lines (24 loc) · 723 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
install-dev-deps: dev-deps
pip-sync requirements.txt dev-requirements.txt
install-deps: deps
pip-sync requirements.txt
deps:
pip install --upgrade pip pip-tools
pip-compile requirements.in
dev-deps: deps
pip-compile dev-requirements.in
fetchdb:
scp borshev.com:/srv/pmdaily/storage/pmdaily.sqlite storage/
cd src && ./manage.py anonymize_db
server:
cd src && ./manage.py migrate && ./manage.py runserver
worker:
cd src && celery -A app worker -E --purge
lint:
cd src && ./manage.py makemigrations --check --no-input --dry-run
flake8 src
cd src && mypy
test:
cd src && pytest -n 4 --ff -x && pytest --dead-fixtures
coverage:
cd src && pytest --dead-fixtures && pytest --cov-report=xml --cov=. -n4 -x