skeleton files added
This commit is contained in:
29
Makefile
Normal file
29
Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
.PHONY: default dev install black-check black-diff test coverage
|
||||
|
||||
version := $(shell sed -n 's/.*__version__ = "\(.*\)".*/\1/p' src/voucher/__init__.py)
|
||||
|
||||
guard-%:
|
||||
@ if [ "${${*}}" = "" ]; then echo "Run 'pipenv shell' before command"; exit 1; fi
|
||||
|
||||
default: install
|
||||
|
||||
install: guard-PIPENV_ACTIVE
|
||||
pip install -e .
|
||||
|
||||
dev: guard-PIPENV_ACTIVE
|
||||
pipenv install --dev --skip-lock
|
||||
|
||||
wheel: guard-PIPENV_ACTIVE coverage black-check
|
||||
python setup.py bdist_wheel
|
||||
|
||||
test: guard-PIPENV_ACTIVE
|
||||
PYTHONPATH=./src pytest
|
||||
|
||||
coverage: guard-PIPENV_ACTIVE
|
||||
PYTHONPATH=./src pytest --cov-report term --cov=./src/voucher ./tests --cov-report term-missing
|
||||
|
||||
black-check: guard-PIPENV_ACTIVE
|
||||
black --check src/ tests/
|
||||
|
||||
black-diff: guard-PIPENV_ACTIVE
|
||||
black --diff src/ tests/
|
Reference in New Issue
Block a user