Skip to content

Commit 0b2c5df

Browse files
author
Thomas Preud'homme
committed
Fix unexpected space around keyword/param equals
Fix Flake8's E251 error (unexpected spaces around keyword / parameter equals) Reviewed By: tnfchris Differential Revision: https://reviews.llvm.org/D94789
1 parent 161ab16 commit 0b2c5df

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

lnt/server/db/testsuitedb.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, v4db, name, test_suite):
5858
self.order_fields = list(self.test_suite.order_fields)
5959
self.run_fields = list(self.test_suite.run_fields)
6060
self.sample_fields = list(sorted(self.test_suite.sample_fields,
61-
key = lambda s: s.schema_index))
61+
key=lambda s: s.schema_index))
6262
self.machine_to_latest_order_cache = {}
6363
sample_field_indexes = dict()
6464

@@ -487,7 +487,10 @@ def load(self, profileDir):
487487
class Sample(self.base, ParameterizedMixin):
488488
__tablename__ = db_key_name + '_Sample'
489489

490-
fields = list(sorted(self.sample_fields, key = lambda x: self.sample_field_indexes[x.name]))
490+
fields = list(
491+
sorted(self.sample_fields,
492+
key=lambda x: self.sample_field_indexes[x.name])
493+
)
491494
id = Column("ID", Integer, primary_key=True)
492495
# We do not need an index on run_id, this is covered by the
493496
# compound (Run(ID),Test(ID)) index we create below.

lnt/server/ui/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def filter_filesize(value):
6464
return "%.2f%sB" % (value, 'Yi')
6565

6666

67-
def filter_print_value(value, field_unit, field_unit_abbrev, default = '-'):
67+
def filter_print_value(value, field_unit, field_unit_abbrev, default='-'):
6868
if value is None:
6969
return default
7070

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
author=lnt.__author__,
4040
author_email=lnt.__email__,
4141
url='http://llvm.org',
42-
license = 'Apache-2.0 with LLVM exception',
42+
license='Apache-2.0 with LLVM exception',
4343

4444
description="LLVM Nightly Test Infrastructure",
4545
keywords='web testing performance development llvm',

tests/server/db/ImportV4TestSuiteInstance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@
7676

7777
# Get the status kinds, and validate the IDs align with the testing IDs.
7878
pass_kind = session.query(testsuite.StatusKind) \
79-
.filter_by(id = lnt.testing.PASS).one()
79+
.filter_by(id=lnt.testing.PASS).one()
8080
assert pass_kind.name == "PASS"
8181
fail_kind = session.query(testsuite.StatusKind) \
82-
.filter_by(id = lnt.testing.FAIL).one()
82+
.filter_by(id=lnt.testing.FAIL).one()
8383
assert fail_kind.name == "FAIL"
8484
xfail_kind = session.query(testsuite.StatusKind) \
85-
.filter_by(id = lnt.testing.XFAIL).one()
85+
.filter_by(id=lnt.testing.XFAIL).one()
8686
assert xfail_kind.name == "XFAIL"
8787

8888
# Load the imported test suite.

0 commit comments

Comments
 (0)