2
0
Fork 0
textout/Makefile

32 lines
831 B
Makefile
Raw Normal View History

2018-01-16 13:34:11 +01:00
#!/usr/bin/make -f
include Makefile.msg
2018-01-16 13:34:11 +01:00
help:
$(call amsg,Available targets are:)
$(call amsg,)
$(call amsg,- install)
$(call amsg,- lint)
$(call amsg,- test)
2018-01-16 13:34:11 +01:00
install:
$(call bmsg,Installing poetry and dependencies.)
$(call qcmd,pip install -U poetry)
$(call qcmd,poetry install)
$(call qcmd,poetry run pre-commit install)
lint:
$(call bcmd,pre-commit,run,-poetry run pre-commit run --all-files)
2018-07-30 15:20:25 +02:00
test:
$(call qcmd,rm -rf htmlcov)
$(call bcmd,pytest,--cov, \
poetry run pytest --cov-report html $(O) $(SPECIFIC_TESTS))
$(call bmsg,HTML coverage is available under the following directory:)
$(call bmsg,file://$(realpath .)/htmlcov/index.html)
clean:
$(call rmsg,Cleaning build and cache directories.)
$(call qcmd,rm -rf build .coverage htmlcov .mypy_cache .pytest_cache)
2018-02-11 21:31:39 +01:00
.PHONY: help install lint test clean