Harald Wartig 1a2d598725 Exclude docs/conf.py from linting.
Running `make lint` after initializing a fresh project complains about errors in `docs/conf.py`. Which is kinda awkward for the user as he didn't write any code yet and already has errors. As this file is autogenerated I think it is best to exclude it from linting rather than fixing the errors.
2016-08-06 11:07:13 +02:00

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/data/make_dataset.py
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 #
#################################################################################