forked from Lightning-Universe/lightning-flash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 734 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: test clean docs
# assume you have installed need packages
export SPHINX_MOCK_REQUIREMENTS=1
test: clean
pip install -q -r requirements.txt
pip install -q -r requirements/test.txt
# install APEX, see https://github.com/NVIDIA/apex#linux
# use this to run tests
python -m coverage run --source flash -m pytest flash tests -v --flake8
python -m coverage report
docs: clean
pip install --quiet -r requirements/docs.txt
python -m sphinx -b html -W --keep-going docs/source docs/build
clean:
rm -rf _ckpt_*
rm -rf ./lightning_logs
# clean all temp runs
rm -rf $(shell find . -name "mlruns")
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf ./docs/build
rm -rf ./docs/source/**/generated
rm -rf ./docs/source/api