refactor: Fix import ordering and code formatting with ruff

Organize imports in render.py and scroll.py to meet ruff style requirements.
Add blank lines for code formatting compliance.
This commit is contained in:
2026-03-16 03:01:22 -07:00
parent d4d0344a12
commit bc20a35ea9
4 changed files with 12 additions and 5 deletions

View File

@@ -75,7 +75,9 @@ def _draw_color_picker(themes_list, selected):
print(CLR, end="")
print()
print(f" {G_HI}▼ COLOR THEME{RST} {W_GHOST}─ ↑/↓ or j/k to move, Enter/q to select{RST}")
print(
f" {G_HI}▼ COLOR THEME{RST} {W_GHOST}─ ↑/↓ or j/k to move, Enter/q to select{RST}"
)
print(f" {W_GHOST}{'' * (tw() - 4)}{RST}\n")
for i, (theme_id, theme) in enumerate(themes_list):
@@ -341,7 +343,7 @@ def main():
print()
_subtitle = {
"poetry": "literary consciousness stream",
"code": "source consciousness stream",
"code": "source consciousness stream",
}.get(config.MODE, "digital consciousness stream")
print(f" {W_DIM}v0.1 · {_subtitle}{RST}")
print(f" {W_GHOST}{'' * (w - 4)}{RST}")
@@ -365,6 +367,7 @@ def main():
save_cache(items)
elif config.MODE == "code":
from engine.fetch_code import fetch_code
slow_print(" > INITIALIZING SOURCE ARRAY...\n")
time.sleep(0.2)
print()