flake8: ignore W503 (and pick W504) (#220)

This commit is contained in:
Daniel Hahler 2018-12-09 18:48:17 +01:00 committed by GitHub
parent aa7864f722
commit 605e6fe296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -124,8 +124,8 @@ class ConfigurationImporter(object):
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__,

View file

@ -52,8 +52,8 @@ class Value(object):
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

View file

@ -49,4 +49,4 @@ deps = flake8
[flake8]
exclude = .tox
ignore = E501,E127,E128,E124
ignore = E501,E127,E128,E124,W503