Skip to content

Commit d9943a0

Browse files
committed
fix: resolve ruff lint errors blocking CI
Remove unused imports (gravy_score, math, json, pytest) and strip extraneous f-prefix from two plain string literals.
1 parent 06c0015 commit d9943a0

6 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎src/openamp_foundry/benchmark/retrospective.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def run_retrospective_benchmark(
112112
"""
113113
from openamp_foundry.features.physchem import compute_features
114114
from openamp_foundry.scoring.activity import activity_likeness_score
115-
from openamp_foundry.scoring.boman import boman_activity_score, gravy_score
115+
from openamp_foundry.scoring.boman import boman_activity_score
116116
from openamp_foundry.scoring.ensemble import ensemble_score
117117
from openamp_foundry.scoring.novelty import novelty_score
118118
from openamp_foundry.scoring.safety import safety_score

‎src/openamp_foundry/cli.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def _run_presynth_qc(args: argparse.Namespace) -> int:
650650
f"- **SPPS difficulty:** {r.synthesis_difficulty}",
651651
]
652652
if r.flags:
653-
lines.append(f"- **FLAGS:**")
653+
lines.append("- **FLAGS:**")
654654
for flag in r.flags:
655655
lines.append(f" - ⚠ {flag}")
656656
else:

‎src/openamp_foundry/qc/presynth_check.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66
from __future__ import annotations
77

8-
import math
98
import re
109
from dataclasses import dataclass, field
1110

‎src/openamp_foundry/reports/pilot_panel.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def write_pilot_markdown(panel: list[dict], path: str | Path, generated_at: str
122122
"make pilot # selects this panel from the nominees",
123123
"```",
124124
"",
125-
f"Full methodology: `docs/NOMINATION_REPORT.md`",
125+
"Full methodology: `docs/NOMINATION_REPORT.md`",
126126
]
127127

128128
out.write_text("\n".join(lines) + "\n", encoding="utf-8")

‎tests/test_pilot_panel.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from __future__ import annotations
33

44
import csv
5-
import json
65

76
import pytest
87

‎tests/test_safety_moment.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"""Tests for hydrophobic-moment-aware safety scorer (v0.4)."""
22
from __future__ import annotations
33

4-
import pytest
5-
64
from openamp_foundry.features.physchem import compute_features
75
from openamp_foundry.scoring.safety import safety_score
86

0 commit comments

Comments
 (0)