From a793e9ac563e77ff09006cc6202abf78ae4c0ebe Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 10 May 2023 15:44:03 -0700 Subject: [PATCH] fix linting errors --- aider/commands.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 5c25b4382..fd540b039 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1,4 +1,5 @@ import os +from rich.text import Text class Commands: @@ -43,21 +44,19 @@ 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(f"[red]Ambiguous command: {', '.join(matching_commands)}") + self.console.print("[red]Ambiguous command: ', '.join(matching_commands)}") else: self.console.print(f"[red]Error: {first_word} is not a valid command.") def cmd_commit(self, args): - "Commit outstanding changes to the chat files. Aider will provide a commit message if yo u don't." + "Commit edits to chat files made outside the chat (commit message optional)" if not self.coder.repo: self.console.print("[red]No git repository found.") @@ -157,7 +156,7 @@ class Commands: def cmd_ls(self, args): "List files and show their chat status" - self.console.print(f"* denotes files included in the chat\n") + self.console.print("* denotes files included in the chat\n") files = self.coder.get_active_files() for file in files: