forked from InsightLab/PyMove
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (26 loc) · 777 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
help:
@echo "available commands"
@echo " - dev : install dev environment"
@echo " - clean : clean temporary folders and files"
@echo " - test : runs all unit tests"
@echo " - lint : checks code style"
@echo " - docs : creates documentation in html"
dev:
pip install -r requirements-dev.txt
pre-commit install
clean:
rm -rf `find . -type d -name .pytest_cache`
rm -rf `find . -type d -name __pycache__`
rm -rf `find . -type d -name .ipynb_checkpoints`
rm -rf docs/_build
rm -f .coverage
test: clean
coverage run -m pytest
coverage report
lint: clean
flake8
docs: clean
rm -rf docs/api docs/examples
sphinx-apidoc -f -o docs/api pymove pymove/tests/
jupyter nbconvert --to rst --output-dir docs/examples examples/[0-9]*.ipynb
make -C docs html