mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 11:52:36 +01:00
Pylint Fixes
Update our version of pylint to use the latest version and update the codebase to comply with the majority of the updates. For now disable the additional checks for `super-with-arguments`, `useless-object-inheritance`, `raise-missing-from`, `no-else-raise`, `no-else-break`, `no-else-continue` to be consistent with the existing codebase.
This commit is contained in:
@@ -732,7 +732,7 @@ class IdleStateValue(object):
|
||||
'''Checks passed state and converts to its ID'''
|
||||
value = caseless_string(value)
|
||||
for s_id, s_name, s_desc in self.values:
|
||||
if value == s_id or value == s_name or value == s_desc:
|
||||
if value in (s_id, s_name, s_desc):
|
||||
return s_id
|
||||
msg = 'Invalid IdleState: "{}"; Must be in {}'
|
||||
raise ValueError(msg.format(value, self.values))
|
||||
|
Reference in New Issue
Block a user