2020-09-02 23:04:12 +01:00
|
|
|
all: lint-fix lint coverage gen
|
|
|
|
|
|
|
|
coverage:
|
2020-09-14 16:37:06 +01:00
|
|
|
coverage run --concurrency=multiprocessing manage.py test --failfast -v 3
|
2020-09-02 23:04:12 +01:00
|
|
|
coverage combine
|
|
|
|
coverage html
|
|
|
|
coverage report
|
|
|
|
|
|
|
|
lint-fix:
|
|
|
|
isort -rc .
|
|
|
|
black .
|
|
|
|
|
|
|
|
lint:
|
|
|
|
pyright
|
|
|
|
bandit -r .
|
|
|
|
pylint passbook
|
|
|
|
prospector
|
|
|
|
|
|
|
|
gen: coverage
|
|
|
|
./manage.py generate_swagger -o swagger.yaml -f yaml
|
2020-09-10 15:58:25 +01:00
|
|
|
|
|
|
|
local-stack:
|
|
|
|
export PASSBOOK_TAG=testing
|
|
|
|
docker build -t beryju/passbook:testng .
|
|
|
|
docker-compose up -d
|
|
|
|
docker-compose run --rm server migrate
|