1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
.DEFAULT_GOAL := all
.PHONY: install
install:
pip install -U pip setuptools
pip install -r tests/requirements.txt
pip install -e .
.PHONY: isort
isort:
isort -rc -w 120 pytest_toolbox
isort -rc -w 120 tests
.PHONY: lint
lint:
flake8 pytest_toolbox/ tests/
pytest pytest_toolbox -p no:sugar -q --cache-clear
coverage run setup.py check -rms
.PHONY: test
test:
py.test --cov=pytest_toolbox
.PHONY: testcov
testcov:
py.test --cov=pytest_toolbox && (echo "building coverage html"; coverage combine; coverage html)
.PHONY: all
all: testcov lint
|