diff --git a/aider/coder.py b/aider/coder.py index 45508b31d..10d87e67b 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -10,8 +10,6 @@ from rich.prompt import Confirm, Prompt from rich.live import Live from rich.text import Text from rich.markdown import Markdown -from rich.syntax import Syntax - from pathlib import Path import git diff --git a/aider/commands.py b/aider/commands.py index 3fe441358..5c25b4382 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -43,15 +43,16 @@ class Commands: rest_inp = inp[len(words[0]) :] all_commands = self.get_commands() - matching_commands = [cmd for cmd in all_commands if cmd.startswith(first_word)] - + matching_commands = [ + cmd for cmd in all_commands if cmd.startswith(first_word) + ] if len(matching_commands) == 1: if matching_commands[0] == "/help": self.help() else: self.do_run(matching_commands[0][1:], rest_inp) elif len(matching_commands) > 1: - self.console.print("[red]Ambiguous command:", ", ".join(matching_commands)) + self.console.print(f"[red]Ambiguous command: {', '.join(matching_commands)}") else: self.console.print(f"[red]Error: {first_word} is not a valid command.")