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
72 lines (56 loc) · 1.27 KB
/
Copy pathMakefile
File metadata and controls
72 lines (56 loc) · 1.27 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
65
66
67
68
69
70
71
72
### Config ###
.PHONY: tests doc-legacy 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 -vx \
-n auto \
--dist=loadfile \
--doctest-modules \
--pyargs mapie \
--cov-branch \
--cov=mapie \
--cov-report term-missing \
--cov-fail-under=100 \
--no-cov-on-fail \
--ignore=mapie/_example_utils.py \
--ignore=mapie/tests/long_tests
long-tests:
pytest -vsx \
mapie/tests/long_tests
### Auto-formatting for local use ###
format-fix:
ruff format examples mapie notebooks
### Checks that are run in ReadTheDocs CI ###
doc-legacy:
$(MAKE) html -C doc_legacy
doctest:
# Tests .. testcode:: blocks in documentation, among other things
$(MAKE) doctest -C doc_legacy
### Other utilities (for local use) ###
all-checks:
$(MAKE) lint
$(MAKE) type-check
$(MAKE) coverage
tests:
pytest -vs \
--doctest-modules \
--pyargs mapie \
--ignore=mapie/_example_utils.py \
--ignore=mapie/tests/long_tests
clean-doc:
$(MAKE) clean -C doc_legacy
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