mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
I lint, therefore I am
Implement fixes for the most recent pylint version.
This commit is contained in:
committed by
Marc Bonnici
parent
0e0d4e0ff0
commit
c410d2e1a1
@@ -86,7 +86,7 @@ class CpuStatesProcessor(OutputProcessor):
|
||||
]
|
||||
|
||||
def initialize(self):
|
||||
self.iteration_reports = OrderedDict()
|
||||
self.iteration_reports = OrderedDict() # pylint: disable=attribute-defined-outside-init
|
||||
|
||||
def process_job_output(self, output, target_info, run_output): # pylint: disable=unused-argument
|
||||
trace_file = output.get_artifact_path('trace-cmd-txt')
|
||||
|
@@ -57,7 +57,8 @@ class CsvReportProcessor(OutputProcessor):
|
||||
raise ConfigError(msg)
|
||||
|
||||
def initialize(self):
|
||||
self.outputs_so_far = [] # pylint: disable=attribute-defined-outside-init
|
||||
# pylint: disable=attribute-defined-outside-init
|
||||
self.outputs_so_far = []
|
||||
self.artifact_added = False
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
@@ -66,14 +67,14 @@ class CsvReportProcessor(OutputProcessor):
|
||||
self._write_outputs(self.outputs_so_far, run_output)
|
||||
if not self.artifact_added:
|
||||
run_output.add_artifact('run_result_csv', 'results.csv', 'export')
|
||||
self.artifact_added = True
|
||||
self.artifact_added = True # pylint: disable=attribute-defined-outside-init
|
||||
|
||||
def process_run_output(self, output, target_info): # pylint: disable=unused-argument
|
||||
self.outputs_so_far.append(output)
|
||||
self._write_outputs(self.outputs_so_far, output)
|
||||
if not self.artifact_added:
|
||||
output.add_artifact('run_result_csv', 'results.csv', 'export')
|
||||
self.artifact_added = True
|
||||
self.artifact_added = True # pylint: disable=attribute-defined-outside-init
|
||||
|
||||
def _write_outputs(self, outputs, output):
|
||||
if self.use_all_classifiers:
|
||||
|
@@ -22,7 +22,6 @@ from datetime import datetime, timedelta
|
||||
from contextlib import contextmanager
|
||||
|
||||
from wa import OutputProcessor, Parameter, OutputProcessorError
|
||||
from wa.framework.exception import OutputProcessorError
|
||||
from wa.utils.serializer import json
|
||||
from wa.utils.types import boolean
|
||||
|
||||
|
@@ -18,7 +18,8 @@
|
||||
import time
|
||||
from collections import Counter
|
||||
|
||||
from wa import OutputProcessor, Status
|
||||
from wa.framework.output import Status
|
||||
from wa.framework.output_processor import OutputProcessor
|
||||
from wa.utils.misc import write_table
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user