mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
flake8: ignore W503 (and pick W504) (#220)
This commit is contained in:
parent
aa7864f722
commit
605e6fe296
3 changed files with 5 additions and 5 deletions
|
|
@ -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__,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -49,4 +49,4 @@ deps = flake8
|
|||
|
||||
[flake8]
|
||||
exclude = .tox
|
||||
ignore = E501,E127,E128,E124
|
||||
ignore = E501,E127,E128,E124,W503
|
||||
|
|
|
|||
Loading…
Reference in a new issue