fix ruff check

This commit is contained in:
Yang Yang 2025-03-12 12:09:50 -07:00
parent 5ec1881c85
commit e4c3f43a99
3 changed files with 3 additions and 1 deletions

View file

@ -89,7 +89,7 @@ class BFCLScoringFn(RegisteredBaseScoringFn):
) -> ScoringResultRow:
test_category = re.sub(r'_[0-9_-]+$', '', input_row['id'])
score_result = postprocess(input_row, test_category)
if (test_category in set(['irrelevance', 'live_relevance', 'live_irrelevance'])):
if (test_category in {'irrelevance', 'live_relevance', 'live_irrelevance'}):
score = gen_relevance_acc(score_result)['valid']
else:
score = gen_valid(score_result)['valid']

View file

@ -1,3 +1,4 @@
#ruff: noqa
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#

View file

@ -1,3 +1,4 @@
#ruff: noqa
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#