Fix new pep8/pylint warnings

Fixed: Consider using {} instead of a call to 'dict' (use-dict-literal)
Fixed: Unnecessary parens after '=' keyword (superfluous-parens)
Fixed: Metaclass class method __new__ should have 'mcs' as first
       argument (bad-mcs-classmethod-argument)

Added: Raising too general exception: Exception (broad-exception-raised)
to the ignore list
This new warning should be addressed in a follow-up patch, not in a
quick fix for unblocking the CI.

Change-Id: I1fdb804d7b561bb3a746d14a51b50edcd445dbe6
This commit is contained in:
Gregory Thiemonge
2023-02-03 09:05:07 +01:00
parent b687bd0a4c
commit ff8c3aa7e2
21 changed files with 124 additions and 121 deletions

View File

@@ -55,7 +55,7 @@ class NoopManager(object):
LOG.debug('Distributor %s delete_distributor', self.__class__.__name__)
delete_distributor_flow = linear_flow.Flow('delete-distributor')
delete_distributor_flow.add(NoopProvidesRequiresTask(
'delete-distributor-task', requires=('distributor_id')))
'delete-distributor-task', requires='distributor_id'))
return delete_distributor_flow
def get_add_vip_subflow(self):