Skip to content

Commit ea154e3

Browse files
author
Ronald Tse
committed
fix(lint): wrap the long strip-haraqat test line
1 parent c5f60fc commit ea154e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/test_sadeedbench_cli.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def test_score_plain_text_lines(tmp_path: Path, capsys) -> None:
5656
def test_bootstrap_vs_reference(tmp_path: Path, capsys) -> None:
5757
data = _parquet(tmp_path)
5858
cand = _preds(tmp_path, "c.jsonl", [{"idx": i, "student": s} for i, s in enumerate(GT)])
59-
stripped = [g.replace("َ", "").replace("ُ", "").replace("ْ", "").replace("ً", "").replace("ّ", "") for g in GT]
59+
marks = "ًَُّْ"
60+
stripped = ["".join(c for c in g if c not in marks) for g in GT]
6061
ref = _preds(tmp_path, "r.jsonl", [{"idx": i, "student": s} for i, s in enumerate(stripped)])
6162
rc = main(["score", "--preds", str(cand), "--data", str(data), "--key", "student",
6263
"--vs", str(ref), "--vs-key", "student"])

0 commit comments

Comments
 (0)