-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
39 lines (31 loc) · 1.14 KB
/
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
39
help:
@echo "Commands:"
@echo ""
@echo " install install in editable mode"
@echo " dev-install install in editable mode with dev requirements"
@echo " pytest run the test suite and report coverage"
@echo " flake8 style check with flake8"
@echo " doc build docs (update existing)"
@echo " doc-clean build docs (new, removing any existing)"
@echo " linkcheck check all links in docs"
@echo " clean clean up all generated files"
@echo ""
install:
pip install -e .
dev-install:
pip install -r requirements-dev.txt && pip install -e .
pytest:
rm -rf .coverage htmlcov/ .pytest_cache/ && pytest --cov=emg3d --flake8 && coverage html
flake8:
flake8 docs/ setup.py emg3d/ tests/
doc:
cd docs && make html && cd ..
doc-clean:
cd docs && rm -rf api/ && rm -rf _build/ && make html && cd ..
linkcheck:
cd docs && make html -b linkcheck && cd ..
clean:
rm -rf build/ dist/ .eggs/ emg3d.egg-info/ emg3d/version.py # build
rm -rf */__pycache__/ */*/__pycache__/ # python cache
rm -rf .coverage htmlcov/ .pytest_cache/ # tests and coverage
rm -rf docs/api/ docs/_build/ docs/savefig/ # docs