-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 1.25 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
.PHONY: clean data process_data lint requirements sync_data_to_s3 sync_data_from_s3
#################################################################################
# GLOBALS #
#################################################################################
BUCKET = assemblyrecord
#################################################################################
# COMMANDS #
#################################################################################
requirements:
pip install -q -r requirements.txt
data: requirements
python -m src.data.get_dataset
process_data: requirements
python -m src.data.clean_data
train_lda: requirements
python -m src.models.train_lda
clean:
find . -name "*.pyc" -exec rm {} \;
lint:
flake8 --exclude=lib/,bin/,docs/conf.py .
sync_data_to_s3:
aws s3 sync data/ s3://$(BUCKET)/data/
sync_data_from_s3:
aws s3 sync s3://$(BUCKET)/data/ data/
#################################################################################
# PROJECT RULES #
#################################################################################