forked from kornia/kornia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (42 loc) · 1.38 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.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 tests/
test-cpu: FORCE
pytest -v --device cpu --dtype all --cov=kornia tests/
test-cuda: FORCE
pytest -v --device cuda --dtype all --cov=kornia tests/
test-mps: FORCE
pytest -v --device mps --dtype float32 -k "not (grad or exception or jit or dynamo)" tests/
test-module: FORCE
pytest -v --device all --dtype all tests/$(module)
test-jit: FORCE
pytest -v --device all --dtype all -m jit
test-gradcheck: FORCE
pytest -v --device all --dtype all -m grad
test-nn: FORCE
pytest -v --device all --dtype all -m nn
test-quick: FORCE
pytest -v --device all --dtype all -m "not (jit or grad or nn)"
test-slow: FORCE
pytest -v --device all --dtype all -m "(jit or grad or nn)"
test-coverage: FORCE
coverage erase && coverage run --source kornia/ -m pytest --device=all --dtype float32,float64 tests/ && coverage report
lint: FORCE
pre-commit run ruff --all-files
mypy: FORCE
mypy
doctest:
pytest -v --doctest-modules kornia/
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 tests/performance/*.py ; do python -utt $${f}; done
uninstall: FORCE
pip uninstall kornia