-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 902 Bytes
/
Makefile
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
.PHONY: help dev test clean
default: help
help:
@echo 'Makefile for the project'
@echo
@echo 'Usage:'
@echo ' make dev install the packages in development mode'
@echo ' make lint run linter'
@echo ' make test run tests'
@echo ' make clean clean all auxiliary files, build and test compiled files'
@echo
dev:
# install the package in development mode
python -m pip install --upgrade pip
pip install -e .[dev]
test:
# run unit tests and generate coverage report
python -m pytest tests/ -vv --cov=. --cov-report=html --cov-report=term-missing --junitxml=junit/coverage-results.xml
clean:
# clean all auxiliary files, build and test compiled files
@rm -rf .pytest_cache/ */.pytest_cache/ junit/ build/ dist/ htmlcov/ .coverage
@find . -not -path './.venv*' -path '*/__pycache__*' -delete
@find . -not -path './.venv*' -path '*/*.egg-info*' -delete