-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 1005 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 1005 Bytes
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
PYTHON ?= python3
PIP ?= $(PYTHON) -m pip
PYTEST ?= $(PYTHON) -m pytest
NOTEBOOK ?= ds_final.ipynb
EXEC_NOTEBOOK ?= reports/ds_final.executed.ipynb
.PHONY: help all install test download run reproduce
help:
@echo "Available targets:"
@echo " make all Install dependencies and run tests"
@echo " make install Install Python dependencies from requirements.txt"
@echo " make test Run the repository test suite"
@echo " make download Download IBM AML + SAML-D datasets into data/raw/"
@echo " make run Open the final notebook in JupyterLab"
@echo " make reproduce Execute ds_final.ipynb and save the executed notebook"
all: install test
install:
$(PIP) install -r requirements.txt
test:
$(PYTEST) tests/ -v --tb=short --timeout=60
download:
$(PYTHON) data/download.py
run:
$(PYTHON) -m jupyter lab $(NOTEBOOK)
reproduce:
mkdir -p reports
$(PYTHON) -m jupyter nbconvert --to notebook --execute $(NOTEBOOK) --output-dir reports --output $(notdir $(EXEC_NOTEBOOK))