-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
48 lines (37 loc) · 794 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
40
41
42
43
44
45
46
47
48
.PHONY: benchmark
benchmark:
pytest --benchmark-sort=mean torchmps/tests/benchmarks
.PHONY: check-format
check-format:
black --check --diff torchmps/
.PHONY: check-style
check-style:
flake8
.PHONY: clean
clean:
rm -rf torchmps.egg-info
rm -rf .pytest_cache/
.PHONY: dev-requirements
dev-requirements: dev_requirements.txt
pip install -r dev_requirements.txt
.PHONY: dist
dist:
python setup.py
.PHONY: docs
docs:
make -C docs html
.PHONY: format
format:
black torchmps/
.PHONY: install
install:
pip install -e .
.PHONY: requirements
requirements: requirements.txt
pip install -r requirements.txt
.PHONY: test
test:
pytest -x --ignore=torchmps/tests/benchmarks torchmps/tests
.PHONY: test-report
test-report:
pytest --cov-report term-missing --cov=torchmps torchmps/tests