Merge pull request #44 from hwartig/patch-2

Make `make lint` work for new projects.
This commit is contained in:
Peter Bull 2016-08-08 22:02:32 -04:00 committed by GitHub
commit 2c08fd900b
2 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@ clean:
find . -name "*.pyc" -exec rm {} \; find . -name "*.pyc" -exec rm {} \;
lint: lint:
flake8 --exclude=lib/,bin/ . flake8 --exclude=lib/,bin/,docs/conf.py .
sync_data_to_s3: sync_data_to_s3:
aws s3 sync data/ s3://$(BUCKET)/data/ aws s3 sync data/ s3://$(BUCKET)/data/

View File

@ -19,10 +19,9 @@ if __name__ == '__main__':
# not used in this stub but often useful for finding various files # not used in this stub but often useful for finding various files
project_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir) project_dir = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)
# find .env automagically by walking up directories until it's found, then # find .env automagically by walking up directories until it's found, then
# load up the .env entries as environment variables # load up the .env entries as environment variables
load_dotenv(find_dotenv()) load_dotenv(find_dotenv())
main() main()