24 lines
412 B
Makefile
24 lines
412 B
Makefile
|
.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
|