Bump responses from 0.12.1 to 0.13.3
[mygpo.git] / makefile
blobef6a8e265797d786544a687bfe0f712c00055af3
1 all: help
3 help:
4 @echo 'make test run tests and show coverage report'
5 @echo 'make clean clean up files'
7 dev-config:
8 mkdir -p envs/dev
9 echo django.core.mail.backends.console.EmailBackend > envs/dev/EMAIL_BACKEND
10 echo secret > envs/dev/SECRET_KEY
11 echo postgres://mygpo:mygpo@localhost/mygpo > envs/dev/DATABASE_URL
12 echo True > envs/dev/DEBUG
14 test: envs/dev/MEDIA_ROOT
15 # assume defined media root directory, empty before running tests
16 rm -rf $(shell cat envs/dev/MEDIA_ROOT)
17 mkdir -p $(shell cat envs/dev/MEDIA_ROOT)
18 envdir envs/dev/ python -Wd -m pytest --cov=mygpo/ --cov-branch
19 coverage report --show-missing
21 update-po:
22 envdir envs/dev/ python manage.py makemessages \
23 --ignore=doc/* --ignore=envs/* --ignore=media/* --ignore=venv/* \
24 --ignore=res/* --ignore=tools/* --ignore=mygpo/*/migrations/* \
25 --ignore=static/*
27 compilemessages:
28 envdir envs/dev/ python manage.py compilemessages
30 notebook:
31 envdir envs/dev/ python manage.py shell_plus --notebook
33 clean:
34 git clean -fX
36 install-deps:
37 sudo apt-get install libpq-dev libjpeg-dev zlib1g-dev libwebp-dev \
38 build-essential python3-dev virtualenv libffi-dev redis postgresql
40 format-code:
41 black --target-version py36 --skip-string-normalization mygpo/
43 check-code-format:
44 black --check --target-version py36 --skip-string-normalization mygpo/
47 .PHONY: all help test clean unittest coverage install-deps format-code