1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

pylint: Remove uneccessary pass statements

This commit is contained in:
Marc Bonnici 2020-10-19 18:07:54 +01:00 committed by setrofim
parent aa4df95a69
commit fbe9460995
3 changed files with 0 additions and 17 deletions

View File

@ -65,7 +65,6 @@ class SubCommand(object):
options to the command's parser). ``context`` is always ``None``. options to the command's parser). ``context`` is always ``None``.
""" """
pass
def execute(self, state, args): def execute(self, state, args):
""" """

View File

@ -30,60 +30,49 @@ class WAError(Exception):
class NotFoundError(WAError): class NotFoundError(WAError):
"""Raised when the specified item is not found.""" """Raised when the specified item is not found."""
pass
class ValidationError(WAError): class ValidationError(WAError):
"""Raised on failure to validate an extension.""" """Raised on failure to validate an extension."""
pass
class ExecutionError(WAError): class ExecutionError(WAError):
"""Error encountered by the execution framework.""" """Error encountered by the execution framework."""
pass
class WorkloadError(WAError): class WorkloadError(WAError):
"""General Workload error.""" """General Workload error."""
pass
class JobError(WAError): class JobError(WAError):
"""Job execution error.""" """Job execution error."""
pass
class InstrumentError(WAError): class InstrumentError(WAError):
"""General Instrument error.""" """General Instrument error."""
pass
class OutputProcessorError(WAError): class OutputProcessorError(WAError):
"""General OutputProcessor error.""" """General OutputProcessor error."""
pass
class ResourceError(WAError): class ResourceError(WAError):
"""General Resolver error.""" """General Resolver error."""
pass
class CommandError(WAError): class CommandError(WAError):
"""Raised by commands when they have encountered an error condition """Raised by commands when they have encountered an error condition
during execution.""" during execution."""
pass
class ToolError(WAError): class ToolError(WAError):
"""Raised by tools when they have encountered an error condition """Raised by tools when they have encountered an error condition
during execution.""" during execution."""
pass
class ConfigError(WAError): class ConfigError(WAError):
"""Raised when configuration provided is invalid. This error suggests that """Raised when configuration provided is invalid. This error suggests that
the user should modify their config and try again.""" the user should modify their config and try again."""
pass
class SerializerSyntaxError(Exception): class SerializerSyntaxError(Exception):

View File

@ -124,13 +124,11 @@ class Workload(TargetedPlugin):
Execute the workload. This is the method that performs the actual Execute the workload. This is the method that performs the actual
"work" of the workload. "work" of the workload.
""" """
pass
def extract_results(self, context): def extract_results(self, context):
""" """
Extract results on the target Extract results on the target
""" """
pass
def update_output(self, context): def update_output(self, context):
""" """
@ -138,11 +136,9 @@ class Workload(TargetedPlugin):
metrics and artifacts for this workload iteration. metrics and artifacts for this workload iteration.
""" """
pass
def teardown(self, context): def teardown(self, context):
""" Perform any final clean up for the Workload. """ """ Perform any final clean up for the Workload. """
pass
@once_per_instance @once_per_instance
def finalize(self, context): def finalize(self, context):
@ -325,7 +321,6 @@ class ApkWorkload(Workload):
Perform the setup necessary to rerun the workload. Only called if Perform the setup necessary to rerun the workload. Only called if
``requires_rerun`` is set. ``requires_rerun`` is set.
""" """
pass
def teardown(self, context): def teardown(self, context):
super(ApkWorkload, self).teardown(context) super(ApkWorkload, self).teardown(context)