mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-03 03:42:35 +01:00
pep8: Ignore line break before binary operator
PEP8 has switched its guidance [1] for where a line break should occur in relation to a binary operator, so don't raise this warning for new code and update the code base to follow the new style. [1] https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
This commit is contained in:
@@ -90,8 +90,8 @@ class CsvReportProcessor(OutputProcessor):
|
||||
|
||||
outfile = output.get_path('results.csv')
|
||||
with csvwriter(outfile) as writer:
|
||||
writer.writerow(['id', 'workload', 'iteration', 'metric', ] +
|
||||
extra_columns + ['value', 'units'])
|
||||
writer.writerow(['id', 'workload', 'iteration', 'metric', ]
|
||||
+ extra_columns + ['value', 'units'])
|
||||
|
||||
for o in outputs:
|
||||
if o.kind == 'job':
|
||||
@@ -106,8 +106,8 @@ class CsvReportProcessor(OutputProcessor):
|
||||
'Output of kind "{}" unrecognised by csvproc'.format(o.kind))
|
||||
|
||||
for metric in o.result.metrics:
|
||||
row = (header + [metric.name] +
|
||||
[str(metric.classifiers.get(c, ''))
|
||||
for c in extra_columns] +
|
||||
[str(metric.value), metric.units or ''])
|
||||
row = (header + [metric.name]
|
||||
+ [str(metric.classifiers.get(c, ''))
|
||||
for c in extra_columns]
|
||||
+ [str(metric.value), metric.units or ''])
|
||||
writer.writerow(row)
|
||||
|
Reference in New Issue
Block a user