forked from pyro-ppl/pyro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 1.08 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
.PHONY: all install docs lint format test integration-test clean FORCE
all: docs test
install: FORCE
pip install -e .[notebooks,visualization,dev,profile]
docs: FORCE
$(MAKE) -C docs html
apidoc: FORCE
$(MAKE) -C docs apidoc
lint: FORCE
flake8
scrub: FORCE
find tutorial -name "*.ipynb" | xargs python -m nbstripout --keep-output
format: FORCE
yapf -i *.py pyro/distributions/*.py profiler/*.py docs/source/conf.py
isort --recursive *.py pyro/ tests/ profiler/*.py docs/source/conf.py
test: lint docs FORCE
pytest -vx -n auto --stage unit
test-examples: lint FORCE
pytest -vx -n auto --stage test_examples
test-tutorials: lint FORCE
pytest -v -n auto --nbval-lax tutorial/
integration-test: lint FORCE
pytest -vx -n auto --stage integration
test-all: lint FORCE
pytest -vx -n auto
test-cuda: lint FORCE
PYRO_TENSOR_TYPE=torch.cuda.DoubleTensor pytest -vx -n 8 --stage unit
test-torch-dist: lint FORCE
PYRO_USE_TORCH_DISTRIBUTIONS=1 pytest -v tests/distributions
PYRO_USE_TORCH_DISTRIBUTIONS=1 pytest -vx -n auto --stage unit
clean: FORCE
git clean -dfx -e pyro-egg.info
FORCE: