Add flake8 linting
This commit is contained in:
parent
7e1179a366
commit
6e0dc39a6c
|
@ -1,4 +1,14 @@
|
||||||
.PHONY: clean data requirements sync_data_to_s3 sync_data_from_s3
|
.PHONY: clean data lint requirements sync_data_to_s3 sync_data_from_s3
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
# GLOBALS #
|
||||||
|
#################################################################################
|
||||||
|
|
||||||
|
BUCKET = {{ cookiecutter.s3_bucket }}
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
# COMMANDS #
|
||||||
|
#################################################################################
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
@ -9,8 +19,15 @@ data: requirements
|
||||||
clean:
|
clean:
|
||||||
find . -name "*.pyc" -exec rm {} \;
|
find . -name "*.pyc" -exec rm {} \;
|
||||||
|
|
||||||
|
lint:
|
||||||
|
flake8 .
|
||||||
|
|
||||||
sync_data_to_s3:
|
sync_data_to_s3:
|
||||||
s3cmd sync --recursive data/ s3://{{ cookiecutter.s3_bucket }}/data/
|
s3cmd sync --recursive data/ s3://$( BUCKET )/data/
|
||||||
|
|
||||||
sync_data_from_s3:
|
sync_data_from_s3:
|
||||||
s3cmd sync --recursive s3://{{ cookiecutter.s3_bucket }}/data/ data/
|
s3cmd sync --recursive s3://$( BUCKET )/data/ data/
|
||||||
|
|
||||||
|
#################################################################################
|
||||||
|
# PROJECT RULES #
|
||||||
|
#################################################################################
|
||||||
|
|
|
@ -2,3 +2,4 @@ click
|
||||||
Sphinx
|
Sphinx
|
||||||
coverage
|
coverage
|
||||||
s3cmd==1.6.0
|
s3cmd==1.6.0
|
||||||
|
flake8
|
|
@ -0,0 +1,3 @@
|
||||||
|
[flake8]
|
||||||
|
max-line-length = 79
|
||||||
|
max-complexity = 10
|
Loading…
Reference in New Issue