From f962baec584ec0b915ef78970d2635ec3810b963 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Mon, 21 Sep 2026 04:01:28 -0400 Subject: [PATCH] Two files the formatter wanted, so CI is green again 2dbae7a went red on lint, and it was never ruff check -- that passed. It was ruff format --check, on two files from the last few commits: a nested def with no blank line above it in the session, and a sum() in test_logo that fits on one line once joined. Both pure layout; neither touches a hand-aligned table, and ruff check stays clean after, which is the thing this repository has been bitten by before. Co-Authored-By: Claude Opus 5 (1M context) --- meshterm/ui/tui/session.py | 1 + tests/test_logo.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/meshterm/ui/tui/session.py b/meshterm/ui/tui/session.py index 72e0c93..d56b3b1 100644 --- a/meshterm/ui/tui/session.py +++ b/meshterm/ui/tui/session.py @@ -975,6 +975,7 @@ class TuiSession: # ⇧H only appears at all once something is hidden, which is exactly the state where # a reader needs to be told how to undo it, and by then they have already found h. screen.spare_hint_atoms = ("←→ scroll", "h hide") + def redraw(new_items: list) -> None: """Swap the rows and repaint. The reader keeps their place, by value.""" screen.replace_items(new_items) diff --git a/tests/test_logo.py b/tests/test_logo.py index 5ee5b78..f80597f 100644 --- a/tests/test_logo.py +++ b/tests/test_logo.py @@ -37,10 +37,7 @@ def _params(text: str) -> list[list[str]]: def _brights(text: str) -> int: """How many sequences in `text` name a bright-bank foreground.""" - return sum( - any(p.isdigit() and 90 <= int(p) <= 97 for p in parts) - for parts in _params(text) - ) + return sum(any(p.isdigit() and 90 <= int(p) <= 97 for p in parts) for parts in _params(text)) # -- a bare intensity change ----------------------------------------------------------