Skip to content

Commit 4e0ebfb

Browse files
committed
Ruff lint
1 parent 18cd74b commit 4e0ebfb

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

rulechef/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def _match_entities_partial(
326326
# Greedy match: best IoU first
327327
candidates.sort(key=lambda x: -x[0])
328328
used_pred = set()
329-
for iou, pi, gi in candidates:
329+
for _iou, pi, gi in candidates:
330330
if pi in used_pred or gi in used_gold:
331331
continue
332332
matched_pairs.append((predicted[pi], expected[gi]))

rulechef/learner.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -628,13 +628,6 @@ def _run_critic(self, rules, dataset, coordinator, eval_result):
628628
dataset.structured_feedback = [
629629
f for f in dataset.structured_feedback if f.source != "critic"
630630
]
631-
# Also clean legacy feedback list
632-
critic_task_texts = {
633-
f.text
634-
for f in dataset.structured_feedback
635-
if f.source == "critic" and f.level == "task"
636-
}
637-
638631
added_rule = 0
639632
added_task = 0
640633

0 commit comments

Comments
 (0)