-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
39 lines (33 loc) · 972 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
32
33
34
35
36
37
38
39
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
pip install -e .
pre-commit install
clean:
rm -rf `find . -type d -name .pytest_cache`
rm -rf `find . -type d -name .mypy_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
pytest pymove
coverage: clean
coverage run -m pytest pymove
coverage report
lint: clean
flake8 pymove
mypy pymove
docs: clean
cp docs/examples/notebooks.rst docs
rm -rf docs/api docs/examples
sphinx-apidoc -f -o docs/api pymove pymove/tests/
jupyter nbconvert --to rst --output-dir docs/examples notebooks/[0-9]*.ipynb
mv docs/notebooks.rst docs/examples
make -C docs html