cookiecutter-data-science/{{ cookiecutter.repo_name }}/Makefile

34 lines
1.1 KiB
Makefile

.PHONY: clean data lint requirements sync_data_to_s3 sync_data_from_s3
#################################################################################
# GLOBALS #
#################################################################################
BUCKET = {{ cookiecutter.s3_bucket }}
#################################################################################
# COMMANDS #
#################################################################################
requirements:
pip install -q -r requirements.txt
data: requirements
python src/make_dataset.py
clean:
find . -name "*.pyc" -exec rm {} \;
lint:
flake8 .
sync_data_to_s3:
s3cmd sync --recursive data/ s3://$(BUCKET)/data/
sync_data_from_s3:
s3cmd sync --recursive s3://$(BUCKET)/data/ data/
#################################################################################
# PROJECT RULES #
#################################################################################