-
Notifications
You must be signed in to change notification settings - Fork 82
/
Makefile
30 lines (27 loc) · 751 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
# simple makefile to simplify repetitive build env management tasks under posix
PYTHON := python3
PIP := $(PYTHON) -m pip
PYTEST := $(PYTHON) -m pytest
init:
$(PIP) install -r requirements.txt
install:
$(PYTHON) setup.py install
install-develop:
$(PYTHON) setup.py develop
install-user:
$(PYTHON) setup.py install --user
clean:
$(PYTHON) setup.py clean --all
unittest:
$(PYTEST) tests -v -m "not (overfit or smalldata)" -k "not test_pipeline"
test:
$(PYTEST) tests -v -m "not (smalldata)"
# FIXME: this should probably be test-overfit rather than overfit
overfit:
$(PYTEST) tests -v -m "overfit"
smalldata:
$(PYTEST) tests -v -m "smalldata"
SNLI:
$(PYTEST) tests -v -m SNLI
doctests:
$(PYTEST) --doctest-modules jtr/preprocess/vocab.py