From 84e2f048e3e9c48222844fb7d8a6d001af46260d Mon Sep 17 00:00:00 2001 From: Yuzviak Date: Sat, 18 Apr 2026 16:41:41 +0300 Subject: [PATCH] fix(lint): ruff --fix import ordering in new test files CI lint job flagged I001 (un-sorted imports) in: - tests/test_gps_input_encoding.py (top-level) - tests/test_vo.py (2 inline imports in new mono_depth tests) Applied ruff --fix: stdlib / third-party / first-party blocks with correct blank-line separators. Co-Authored-By: Claude Opus 4.7 (1M context) --- tests/test_gps_input_encoding.py | 1 - tests/test_vo.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_gps_input_encoding.py b/tests/test_gps_input_encoding.py index 4f12dc3..ac24d8b 100644 --- a/tests/test_gps_input_encoding.py +++ b/tests/test_gps_input_encoding.py @@ -21,7 +21,6 @@ from gps_denied.core.mavlink import _confidence_to_fix_type, _eskf_to_gps_input from gps_denied.schemas import GPSPoint from gps_denied.schemas.eskf import ConfidenceTier, ESKFState - _ORIGIN = GPSPoint(lat=49.0, lon=32.0) diff --git a/tests/test_vo.py b/tests/test_vo.py index 884cce1..9c7dabd 100644 --- a/tests/test_vo.py +++ b/tests/test_vo.py @@ -255,6 +255,7 @@ def test_mono_depth_scale_not_ambiguous(): def test_mono_depth_depth_hint_scales_translation(): """depth_hint_m scales translation in dev/CI ORB fallback by depth_hint_m / 600.0.""" from unittest.mock import patch + from gps_denied.core.vo import CuVSLAMMonoDepthVisualOdometry, ORBVisualOdometry from gps_denied.schemas.vo import RelativePose @@ -318,6 +319,7 @@ def test_mono_depth_update_depth_hint_clamps_below_one(): def test_mono_depth_update_depth_hint_affects_subsequent_scale(): """update_depth_hint changes scale used by next compute_relative_pose call.""" from unittest.mock import patch + from gps_denied.core.vo import CuVSLAMMonoDepthVisualOdometry, ORBVisualOdometry from gps_denied.schemas.vo import RelativePose