fix: resolve CI/CD issues - fixed linting and type errors
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
"""Output formatting with Rich."""
|
"""Output formatting with Rich."""
|
||||||
|
|
||||||
from typing import Optional
|
|
||||||
|
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
from rich.panel import Panel
|
from rich.panel import Panel
|
||||||
from rich.syntax import Syntax
|
from rich.syntax import Syntax
|
||||||
@@ -11,7 +9,6 @@ from rich.theme import Theme
|
|||||||
from shell_speak.models import CommandMatch, HistoryEntry
|
from shell_speak.models import CommandMatch, HistoryEntry
|
||||||
from shell_speak.nlp import tokenize
|
from shell_speak.nlp import tokenize
|
||||||
|
|
||||||
|
|
||||||
custom_theme = Theme({
|
custom_theme = Theme({
|
||||||
"command": "bold cyan",
|
"command": "bold cyan",
|
||||||
"keyword": "bold green",
|
"keyword": "bold green",
|
||||||
@@ -103,7 +100,7 @@ def display_suggestions(suggestions: list[str]) -> None:
|
|||||||
|
|
||||||
def display_learn_success(query: str, command: str) -> None:
|
def display_learn_success(query: str, command: str) -> None:
|
||||||
"""Display confirmation of learning."""
|
"""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" Query: {query}")
|
||||||
console.print(f" [command]{command}[/]")
|
console.print(f" [command]{command}[/]")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user