Lab1-2021112114/Makefile

24 lines
412 B
Makefile
Raw Permalink Normal View History

2024-06-16 15:05:13 +00:00
.PHONY: run refresh test lint coverage clean
MODULE := lab1.py
all: clean test lint
refresh: clean test lint
run:
python ${MODULE}
lint:
flake8 ${MODULE} tests/ --exclude __init__.py --count --max-line-length=127 --extend-ignore=W293,E402
test:
pytest
coverage:
coverage run --source $(basename ${MODULE}) --parallel-mode -m pytest
coverage combine
coverage html -i
clean:
rm -rf build
rm -rf dist