forked from scikit-learn-contrib/MAPIE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (49 loc) · 1.05 KB
/
Makefile
File metadata and controls
64 lines (49 loc) · 1.05 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
### Config ###
.PHONY: tests doc build
### Checks that are run in GitHub CI ###
lint:
ruff check examples mapie notebooks
format:
ruff format --check --diff examples mapie notebooks
type-check:
mypy mapie
coverage:
pytest -vsx \
--doctest-modules \
--pyargs mapie \
--cov-branch \
--cov=mapie \
--cov-report term-missing \
--cov-fail-under=100 \
--no-cov-on-fail \
--ignore=mapie/tests/long_tests
long-tests:
pytest -vsx \
mapie/tests/long_tests
### Checks that are run in ReadTheDocs CI ###
doc:
$(MAKE) html -C doc
doctest:
# Tests .. testcode:: blocks in documentation, among other things
$(MAKE) doctest -C doc
### Other utilities (for local use) ###
all-checks:
$(MAKE) lint
$(MAKE) type-check
$(MAKE) coverage
tests:
pytest -vs \
--doctest-modules \
--pyargs mapie \
--ignore=mapie/tests/long_tests
clean-doc:
$(MAKE) clean -C doc
build:
python -m build
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