fix: resolve CI/CD issues - fixed linting and type errors
All checks were successful
CI / test (push) Successful in 9m33s
CI / build (push) Successful in 13s

This commit is contained in:
2026-01-31 06:07:09 +00:00
parent ecb843aa87
commit 7b53bf7533

View File

@@ -1,7 +1,5 @@
"""Output formatting with Rich."""
from typing import Optional
from rich.console import Console
from rich.panel import Panel
from rich.syntax import Syntax
@@ -11,7 +9,6 @@ from rich.theme import Theme
from shell_speak.models import CommandMatch, HistoryEntry
from shell_speak.nlp import tokenize
custom_theme = Theme({
"command": "bold cyan",
"keyword": "bold green",
@@ -103,7 +100,7 @@ def display_suggestions(suggestions: list[str]) -> None:
def display_learn_success(query: str, command: str) -> None:
"""Display confirmation of learning."""
console.print(f"[success]Learned new command:[/]")
console.print("[success]Learned new command:[/]")
console.print(f" Query: {query}")
console.print(f" [command]{command}[/]")