This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-02 22:04:12 +00:00
|
|
|
all: lint-fix lint coverage gen
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
coverage run --concurrency=multiprocessing manage.py test passbook --failfast
|
|
|
|
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 14:58:25 +00:00
|
|
|
|
|
|
|
local-stack:
|
|
|
|
export PASSBOOK_TAG=testing
|
|
|
|
docker build -t beryju/passbook:testng .
|
|
|
|
docker-compose up -d
|
|
|
|
docker-compose run --rm server migrate
|