Ignore E731 and fix some pep8 errors.

Change-Id: Id7dfa9f1fc63b5e196261e4311d2f0c61a5ab9c1
This commit is contained in:
lvdongbing 2016-01-13 03:00:30 -05:00
parent 550fde3c91
commit ad547dccaf
5 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,7 @@ service_opts = [
cfg.StrOpt('environment_dir',
default='/etc/bilean/environments',
help=_('The directory to search for environment files.')),
]
]
rpc_opts = [
cfg.StrOpt('host',
@ -69,7 +69,7 @@ authentication_opts = [
help=_('Name of the domain for the service user.')),
cfg.StrOpt('service_project_domain', default='Default',
help=_('Name of the domain for the service project.')),
]
]
clients_group = cfg.OptGroup('clients')
clients_opts = [

View File

@ -145,7 +145,7 @@ def random_name(length=8):
lead = random.choice(string.ascii_letters)
tail = ''.join(random.choice(string.ascii_letters + string.digits)
for i in range(length-1))
for i in range(length - 1))
return lead + tail

View File

@ -49,7 +49,7 @@ bilean_task_opts = [
cfg.StrOpt('connection',
help='The SQLAlchemy connection string used to connect to the '
'database')
]
]
bilean_task_group = cfg.OptGroup('bilean_task')
cfg.CONF.register_group(bilean_task_group)

View File

@ -160,8 +160,8 @@ class EventDefinition(object):
return False
def match_type(self, event_type):
return (self.included_type(event_type)
and not self.excluded_type(event_type))
return (self.included_type(event_type) and
not self.excluded_type(event_type))
@property
def is_catchall(self):

View File

@ -34,7 +34,7 @@ commands = {posargs}
commands = python setup.py build_sphinx
[flake8]
ignore =
ignore = E731
exclude = .venv,.git,.tox,cover,dist,*lib/python*,*egg,tools,build
max-complexity=20