forked from f-dangel/vivit-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
119 lines (86 loc) · 2.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.DEFAULT: help
help:
@echo "install"
@echo " Install vivit and dependencies"
@echo "uninstall"
@echo " Unstall vivit"
@echo "install-dev"
@echo " Install only the development tools"
@echo "install-test"
@echo " Install only the testing tools (included in install-dev)"
@echo "test"
@echo " Run pytest on test and report coverage"
@echo "test-light"
@echo " Run pytest on the light part of test and report coverage"
@echo "install-examples"
@echo " Install only the dependencies to run examples"
@echo "examples"
@echo " Run the examples"
@echo "install-lint"
@echo " Install only the linter tools (included in install-dev)"
@echo "isort"
@echo " Run isort (sort imports) on the project"
@echo "isort-check"
@echo " Check if isort (sort imports) would change files"
@echo "black"
@echo " Run black on the project"
@echo "black-check"
@echo " Check if black would change files"
@echo "flake8"
@echo " Run flake8 on the project"
@echo "conda-env"
@echo " Create conda environment 'vivit-experiments' with dev setup"
@echo "darglint-check"
@echo " Run darglint (docstring check) on the project"
@echo "pydocstyle-check"
@echo " Run pydocstyle (docstring check) on the project"
.PHONY: install
install:
@pip install -r requirements.txt
@pip install .
.PHONY: uninstall
uninstall:
@pip uninstall vivit
.PHONY: install-dev
install-dev:
@make install-test
@make install-lint
.PHONY: install-test
install-test:
@pip install -r requirements/test.txt
.PHONY: test test-light
test:
@pytest -vx --run-optional-tests=expensive --cov=vivit test
test-light:
@pytest -vx --cov=vivit test
.PHONY: examples
examples:
@cd exp/examples && bash run_examples.sh
.PHONY: install-examples
install-examples:
@cd exp && pip install -r requirements-exp.txt
.PHONY: install-lint
install-lint:
@pip install -r requirements/lint.txt
.PHONY: isort isort-check
isort:
@isort .
isort-check:
@isort . --check --diff
.PHONY: black black-check
black:
@black . --config=black.toml
black-check:
@black . --config=black.toml --check
.PHONY: flake8
flake8:
@flake8 .
.PHONY: darglint-check
darglint-check:
@darglint --verbosity 2 vivit
.PHONY: pydocstyle-check
pydocstyle-check:
@pydocstyle --count .
.PHONY: conda-env
conda-env:
@conda env create --file .conda_env.yml