From 2ca0df18bc4fd6e665b44e3b71f4a50c3831aaf7 Mon Sep 17 00:00:00 2001 From: Reithan Date: Fri, 14 Aug 2026 00:56:48 -0700 Subject: [PATCH] Sort imports in test_pred_type to satisfy ruff I001 (#35) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What Sorts the import block at `tests/test_pred_type.py:18` so `ruff` (rule I001) passes clean on `main`. ```diff -from NRS.nodes_NRS import PredictionType, _RAW_TO_ENUM, NRS +from NRS.nodes_NRS import _RAW_TO_ENUM, NRS, PredictionType ``` ## Why Gate-1 (pre-refactor checkpoint) requires `ruff` + `pytest` green on `main`. This was the only outstanding lint violation. ## Verification - `uvx ruff check .` → All checks passed! - `uvx --with torch pytest -q` → 24 passed Import-sort only; no behavior change. --- tests/test_pred_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pred_type.py b/tests/test_pred_type.py index 531e2ff..920f009 100644 --- a/tests/test_pred_type.py +++ b/tests/test_pred_type.py @@ -15,7 +15,7 @@ import pytest # Add project root to path for imports sys.path.insert(0, str(Path(__file__).parent.parent)) -from NRS.nodes_NRS import PredictionType, _RAW_TO_ENUM, NRS +from NRS.nodes_NRS import _RAW_TO_ENUM, NRS, PredictionType def _make_model_sampling(class_name):