Enable flake8 E129 rule

E129: Visually indented line with same indent
as next logical line (E129)
refer to: https://www.flake8rules.com/rules/E129.html

Change-Id: Ib34fe5f5eb2aa5bc4980ed67beb027d2bf7186e9
This commit is contained in:
wu.chunyang 2023-06-19 10:35:42 +08:00
parent 89514c0d5b
commit 0fd7bf2ad9
4 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ ignore-path = .venv,.tox,.git,dist,doc,*egg-info,tools,etc,build,*.po,*.pot,inte
[flake8]
show-source = True
ignore = E129,E402,E731,F601,F821,H301,H404,H405,H501,W503,W504,W605
ignore = E402,E731,F601,F821,H301,H404,H405,H501,W503,W504,W605
enable-extensions = H203,H106
import-order-style = pep8
builtins = _

View File

@ -511,7 +511,7 @@ class Manager(periodic_task.PeriodicTasks):
exposed)
if (gl_def[self.GUEST_LOG_TYPE_LABEL] ==
guest_log.LogType.USER):
guest_log.LogType.USER):
guestlog.enabled = self.is_log_enabled(log_name)
guestlog.status = (guest_log.LogStatus.Enabled
if guestlog.enabled

View File

@ -286,7 +286,7 @@ class MySqlManager(manager.Manager):
volume_stats = self.get_filesystem_stats(context, None)
if (volume_stats.get('total', 0.0) <
replica_info['dataset']['dataset_size']):
replica_info['dataset']['dataset_size']):
raise exception.InsufficientSpaceForReplica(
replica_info.update({
'slave_volume_size': volume_stats.get('total', 0.0)

View File

@ -558,7 +558,7 @@ class InstanceController(wsgi.Controller):
name = body['instance'].get('name')
if ((name and len(body['instance'].keys()) > 2) or
(not name and len(body['instance'].keys()) >= 2)):
(not name and len(body['instance'].keys()) >= 2)):
raise exception.BadRequest("Only one attribute (except 'name') is "
"allowed to update.")