forked from kornia/kornia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (26 loc) · 844 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
.PHONY: test test-cpu test-cuda lint mypy build-docs install uninstall FORCE
test: mypy lint build-docs test-all
test-all: FORCE
pytest -v --device all --dtype all --cov=kornia test/ --flake8 --mypy
test-cpu: FORCE
pytest -v --device cpu --dtype all --cov=kornia test/ --flake8 --mypy
test-cuda: FORCE
pytest -v --device cuda --dtype all --cov=kornia test/ --flake8 --mypy
lint: FORCE
pytest -v --flake8 -m flake8
mypy: FORCE
pytest -v --mypy -m mypy test/
autopep8: FORCE
autopep8 --in-place --aggressive --recursive kornia/ test/ examples/
docstyle: FORCE
pydocstyle kornia/
build-docs: FORCE
cd docs; make clean html
install: FORCE
python setup.py install
install-dev: FORCE
python setup.py develop
benchmark: FORCE
for f in test/performance/*.py ; do python -utt $${f}; done
uninstall: FORCE
pip uninstall kornia