mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
wa/commands: pylint fixes
This commit is contained in:
parent
c6ec7af665
commit
dbea1d7d09
@ -194,6 +194,7 @@ def create_workload(name, kind='basic', where='local', check_name=True, **kwargs
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
raise CommandError('Unknown workload type: {}'.format(kind))
|
raise CommandError('Unknown workload type: {}'.format(kind))
|
||||||
|
|
||||||
|
# pylint: disable=superfluous-parens
|
||||||
print('Workload created in {}'.format(workload_dir))
|
print('Workload created in {}'.format(workload_dir))
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
from wa import Command
|
from wa import Command
|
||||||
from wa.framework import pluginloader
|
from wa.framework import pluginloader
|
||||||
from wa.framework.target.descriptor import list_target_descriptions
|
from wa.framework.target.descriptor import list_target_descriptions
|
||||||
@ -45,7 +46,7 @@ class ListCommand(Command):
|
|||||||
Only list results that are supported by the
|
Only list results that are supported by the
|
||||||
specified platform.
|
specified platform.
|
||||||
''')
|
''')
|
||||||
|
# pylint: disable=superfluous-parens
|
||||||
def execute(self, state, args):
|
def execute(self, state, args):
|
||||||
filters = {}
|
filters = {}
|
||||||
if args.name:
|
if args.name:
|
||||||
@ -80,6 +81,7 @@ def get_kinds():
|
|||||||
return ['{}s'.format(name) for name in kinds]
|
return ['{}s'.format(name) for name in kinds]
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=superfluous-parens
|
||||||
def list_targets():
|
def list_targets():
|
||||||
targets = list_target_descriptions()
|
targets = list_target_descriptions()
|
||||||
targets = sorted(targets, key=lambda x: x.name)
|
targets = sorted(targets, key=lambda x: x.name)
|
||||||
|
@ -26,7 +26,7 @@ from wa.utils.revent import ReventRecorder
|
|||||||
|
|
||||||
|
|
||||||
if sys.version_info[0] == 3:
|
if sys.version_info[0] == 3:
|
||||||
raw_input = input
|
raw_input = input #pylint: disable=redefined-builtin
|
||||||
|
|
||||||
|
|
||||||
class RecordCommand(Command):
|
class RecordCommand(Command):
|
||||||
|
@ -83,7 +83,7 @@ class ShowCommand(Command):
|
|||||||
|
|
||||||
call('echo "{}" | man -l -'.format(escape_double_quotes(output)), shell=True)
|
call('echo "{}" | man -l -'.format(escape_double_quotes(output)), shell=True)
|
||||||
else:
|
else:
|
||||||
print(rst_output)
|
print(rst_output) # pylint: disable=superfluous-parens
|
||||||
|
|
||||||
|
|
||||||
def get_target_description(name):
|
def get_target_description(name):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user