Skip to content

Commit a59ea8d

Browse files
Ronald Tseronaldtse
authored andcommitted
fix: lint the artifact scorer — import order and line length
The artifact-level scoring tool landed with an unsorted import block (I001) and a 101-char line (E501), turning main's test job red and failing every open PR against it. Ruff --fix reordered the block (interscript_ml classifies third-party, grouping with pandas); the long preds-write line split. Unblocks main and the correction PRs.
1 parent df2d4fa commit a59ea8d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/gpu/modal_score_artifact.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def score(zip_path: str, expect_sha: str = "", out: str = "") -> dict:
5454
raise RuntimeError(f"volume zip sha {digest} != expected {expect_sha}")
5555

5656
import pandas as pd
57+
from interscript_ml import Model
5758

5859
from harness.sadeed import project_haraqat, split_windows, strip_diacritics
59-
from interscript_ml import Model
6060
from sadeedbench.scoring import score_predictions
6161

6262
inputs = pd.read_parquet("/opt/rababa/data/sadeed-diac-25/train.parquet")[
@@ -96,7 +96,8 @@ def score(zip_path: str, expect_sha: str = "", out: str = "") -> dict:
9696
with out_path.open("w", encoding="utf-8") as fh:
9797
for j, q in enumerate(preds):
9898
if j < len(preds):
99-
fh.write(json.dumps({"idx": j, "student": q}, ensure_ascii=False) + "\n")
99+
fh.write(json.dumps({"idx": j, "student": q},
100+
ensure_ascii=False) + "\n")
100101
MODELS_VOLUME.commit()
101102

102103
gts = pd.read_parquet("/opt/rababa/data/sadeed-diac-25/train.parquet")[

0 commit comments

Comments
 (0)