From af032e3d87a402b764cbceba779b7771fb8891e8 Mon Sep 17 00:00:00 2001 From: BlackAngelTV Date: Wed, 25 Nov 2026 20:41:42 +0100 Subject: [PATCH] style(scrollback-search): sort imports to satisfy ruff The lint job failed on the unsorted import blocks, which blocked the release checks for the 0.1.7 bump. --- kitty/window.py | 2 +- kitty_tests/scrollback_search.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kitty/window.py b/kitty/window.py index aabbe29..6eaaa33 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -2785,7 +2785,7 @@ class Window: def _push_scrollback_search_mode(self) -> None: from .fast_data_types import GLFW_FKEY_ESCAPE, GLFW_MOD_SHIFT - from .options.utils import KeyDefinition, KeyboardMode, SingleKey + from .options.utils import KeyboardMode, KeyDefinition, SingleKey km = KeyboardMode('__scrollback_search__') km.on_unknown = 'passthrough' diff --git a/kitty_tests/scrollback_search.py b/kitty_tests/scrollback_search.py index 612211d..fb489d8 100644 --- a/kitty_tests/scrollback_search.py +++ b/kitty_tests/scrollback_search.py @@ -4,8 +4,6 @@ import re import time -from .base import BaseTest - from kitty.scrollback_search import ( InvalidQuery, Match, @@ -15,6 +13,8 @@ from kitty.scrollback_search import ( scroll_offset_for, ) +from .base import BaseTest + class TestScrollbackSearch(BaseTest): def test_parse_query(self):