skeleton files added

This commit is contained in:
Jonas Forsberg
2022-07-07 18:54:56 +02:00
parent ea9d3aa73f
commit af7127d05c
6 changed files with 371 additions and 0 deletions

29
Makefile Normal file
View 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/