From f8390a889b4c868b8ba58d4082780f90b2336333 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 27 Sep 2024 16:06:44 -0700 Subject: [PATCH] style: Ran the linter --- aider/commands.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index d282ff1d6..29b892dfe 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -577,21 +577,18 @@ class Commands: def completions_raw_read_only(self, document, complete_event): # Extract the part of the input after the command - text = document.text[len("/read-only"):].lstrip() - + text = document.text[len("/read-only") :].lstrip() + # Create a PathCompleter path_completer = PathCompleter( only_directories=False, expanduser=True, get_paths=lambda: [self.coder.root], ) - + # Get completions from the PathCompleter - completions = path_completer.get_completions( - document.replace(text=text), - complete_event - ) - + completions = path_completer.get_completions(document.replace(text=text), complete_event) + # Yield the completions for completion in completions: # Adjust the start position to account for the command @@ -599,7 +596,7 @@ class Commands: completion.text, start_position=completion.start_position - len(document.text) + len(text), display=completion.display, - display_meta=completion.display_meta + display_meta=completion.display_meta, ) def completions_add(self):