-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 903 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (30 loc) · 903 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
35
36
37
38
39
40
.PHONY: help install install-dev format lint test train xai data-download dvc-push dvc-pull
help:
@echo "Makefile targets:"
@echo " make install # install runtime requirements"
@echo " make install-dev # install dev requirements"
@echo " make format # run black"
@echo " make lint # run flake8"
@echo " make test # run pytest"
@echo " make train # run local smoke training (run.py)"
@echo " make xai # run local xai demo"
@echo " make data-download # download dataset via Kaggle (script)"
@echo " make dvc-push # push tracked DVC artifacts"
install:
pip install -r requirements.txt
install-dev:
pip install -r requirements-dev.txt
format:
black .
lint:
flake8 src tests
test:
pytest -q
train:
python run.py train
xai:
python run.py xai
data-download:
bash scripts/download_data.sh
dvc-push:
dvc push