Skip to content

Commit

Permalink
flake8: ignore W503 (and pick W504) (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Dec 9, 2018
1 parent aa7864f commit 605e6fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions configurations/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def announce(self):
def stylize(text):
return colorize(text, fg='green')

if self.argv[1] == 'runserver' \
and os.environ.get('RUN_MAIN') == 'true':
if (self.argv[1] == 'runserver'
and os.environ.get('RUN_MAIN') == 'true'):

message = ("django-configurations version {0}, using "
"configuration '{1}'".format(__version__,
Expand Down
4 changes: 2 additions & 2 deletions configurations/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def __new__(cls, *args, **kwargs):
instance.late_binding = kwargs.get('late_binding')
if not instance.late_binding:
instance.__init__(*args, **kwargs)
if (instance.environ and instance.environ_name) \
or (not instance.environ and instance.default):
if ((instance.environ and instance.environ_name)
or (not instance.environ and instance.default)):
instance = instance.setup(instance.environ_name)
return instance

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ deps = flake8

[flake8]
exclude = .tox
ignore = E501,E127,E128,E124
ignore = E501,E127,E128,E124,W503

0 comments on commit 605e6fe

Please sign in to comment.