Skip to content

Commit e0da362

Browse files
committed
ruff format + lint
1 parent 6209f79 commit e0da362

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

test_utils/test_config.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
InferenceConfig,
77
LoraConfig,
88
ModelConfig,
9+
QaConfig,
910
SftArgs,
1011
TrainingArgs,
1112
TrainingConfig,
12-
QaConfig
1313
)
1414

1515

@@ -72,6 +72,15 @@ def get_sample_config():
7272
train_test_split_seed=42,
7373
),
7474
qa=QaConfig(
75-
llm_tests=["jaccard_similarity", "dot_product", "rouge_score", "word_overlap", "verb_percent", "adjective_percent", "noun_percent", "summary_length"]
76-
)
75+
llm_tests=[
76+
"jaccard_similarity",
77+
"dot_product",
78+
"rouge_score",
79+
"word_overlap",
80+
"verb_percent",
81+
"adjective_percent",
82+
"noun_percent",
83+
"summary_length",
84+
]
85+
),
7786
)

tests/qa/test_generics.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ def test_save_test_results(mock_csv, mock_tests, mocker):
6565

6666
def test_print_test_results(capfd, example_data):
6767
tests = [MockQaTest()]
68-
test_suite = LLMTestSuite(
69-
tests, example_data["Prompt"], example_data["Ground Truth"], example_data["Predicted"]
70-
)
68+
test_suite = LLMTestSuite(tests, example_data["Prompt"], example_data["Ground Truth"], example_data["Predicted"])
7169
test_suite.print_test_results()
7270
out, err = capfd.readouterr()
7371

0 commit comments

Comments
 (0)