Skip to content

Commit

Permalink
Merge pull request #1628 from openhealthcare/dependabot/pip/flake8-3.6.0
Browse files Browse the repository at this point in the history
Bump flake8 from 3.2.1 to 3.6.0
  • Loading branch information
fredkingham authored Nov 13, 2018
2 parents 87825b7 + f8b28ac commit c371e75
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions opal/core/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ def __get__(self, inst, cls):
return self
try:
foreign_obj = getattr(inst, self.fk_field_name)
except:
except AttributeError:
return 'Unknown Lookuplist Entry'
# foreign_obj = getattr(inst, self.fk_field_name)
if foreign_obj is None:
return getattr(inst, self.ft_field_name)
else:
Expand Down
12 changes: 6 additions & 6 deletions opal/core/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def __eq__(self, other):
if not isinstance(other, MenuItem):
return NotImplemented

return (self.template_name == other.template_name and
self.activepattern == other.activepattern and
self.href == other.href and
self.icon == other.icon and
self.display == other.display and
self.index == other.index)
return all([self.template_name == other.template_name,
self.activepattern == other.activepattern,
self.href == other.href,
self.icon == other.icon,
self.display == other.display,
self.index == other.index])

def __ne__(self, other):
if not isinstance(other, MenuItem):
Expand Down
2 changes: 1 addition & 1 deletion opal/core/pathway/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from opal.core.pathway import views, api

PATHWAY_REGEX = "(?P<name>[0-9a-z_\-]+)"
PATHWAY_REGEX = "(?P<name>[0-9a-z_\-]+)" # noqa: W605
PATIENT_ID_REGEX = "(?P<patient_id>[0-9]+)"
EPISODE_ID_REGEX = "(?P<episode_id>[0-9]+)"

Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ coverage
coveralls
celery==3.1.25
django-celery==3.2.2
flake8==3.2.1
flake8==3.6.0
requests==2.20.1
psycopg2==2.7.6.1

0 comments on commit c371e75

Please sign in to comment.