-
Notifications
You must be signed in to change notification settings - Fork 110
/
Makefile
38 lines (29 loc) · 572 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
29
30
31
32
33
34
35
36
37
38
.PHONY: tests doc build
lint:
flake8 . --exclude=doc
type-check:
mypy mapie
tests:
pytest -vs --doctest-modules mapie
coverage:
pytest -vs \
--doctest-modules \
--cov-branch \
--cov=mapie \
--cov-report term-missing \
--pyargs mapie \
--cov-fail-under=100 \
--cov-config=.coveragerc
doc:
$(MAKE) html -C doc
clean-doc:
$(MAKE) clean -C doc
build:
python setup.py sdist bdist_wheel
clean-build:
rm -rf build dist MAPIE.egg-info
clean:
rm -rf .mypy_cache .pytest_cache .coverage*
rm -rf **__pycache__
$(MAKE) clean-build
$(MAKE) clean-doc