diff --git a/.travis.yml b/.travis.yml index d399d1945c3e775a3c90221e79848c9d18f357bd..3a9983e245c3b1b21cb284eeedf40771ddd90916 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,7 +48,7 @@ install: # Run the tests script: # Run python code style checks - - flake8 + - flake8 ./opentech # Collect static - python manage.py collectstatic --noinput --verbosity=0 diff --git a/opentech/apply/funds/models/mixins.py b/opentech/apply/funds/models/mixins.py index c51f64fecda4c7c49942b17db5a54e5b3f11766b..5ddbb637742cfe69d6d4ecef7028b9e037c422d5 100644 --- a/opentech/apply/funds/models/mixins.py +++ b/opentech/apply/funds/models/mixins.py @@ -97,7 +97,7 @@ class AccessFormData: definitive_id = self.get_definitive_id(id) try: return self.raw_data[definitive_id] - except KeyError as e: + except KeyError: # We have most likely progressed application forms so the data isnt in form_data return None diff --git a/setup.cfg b/setup.cfg index b17a8586f5b8ba9176e4c74bfed2e953bd719077..f5fa01f14eb1d5dc4da229322622ffaa85337912 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,3 @@ [flake8] -ignore = E501,F405 +ignore = E501,F405,F821,W504,W605 exclude = migrations,node_modules