Upgrade requirements.

With the upgrade of pep8 to 1.7.0 module imports are required to be at the top of the file,
meaning I had to add a noqa line to some of the init files. Are those init files wrong or is pep8 too strict.
This commit is contained in:
Rebecca Law
2016-04-21 09:30:33 +01:00
parent 2afbbd6423
commit 009c117452
6 changed files with 27 additions and 30 deletions

11
wsgi.py
View File

@@ -1,6 +1,10 @@
from credstash import getAllSecrets
import os
from credstash import getAllSecrets
from app import create_app
from config import configs
default_env_file = '/home/ubuntu/environment'
environment = 'live'
@@ -8,16 +12,11 @@ if os.path.isfile(default_env_file):
with open(default_env_file, 'r') as environment_file:
environment = environment_file.readline().strip()
# on aws get secrets and export to env
os.environ.update(getAllSecrets(region="eu-west-1"))
from config import configs
os.environ['NOTIFY_ADMIN_ENVIRONMENT'] = configs[environment]
from app import create_app
application = create_app()
if __name__ == "__main__":