mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
aider: Fixed line length issue by splitting a long line into two lines.
# Context: USER: aider/commands.py:155:101: E501 line too long (117 > 100 characters) ASSISTANT: To fix the line length issue, you can split the long line into multiple lines. Here's the change: ```python aider/commands.py <<<<<<< ORIGINAL if not matched_files: if self.coder.repo is not None: create_file = Confirm.ask( f"[bright_black]No files matched '{word}'. Do you want to create the file and add it to git?" ) ======= if not matched_files: if self.coder.repo is not None: create_file = Confirm.ask( f"[bright_black]No files matched '{word}'. " "Do you want to create the file and add it to git?" ) >>>>>>> UPDATED ``` This change splits the long line into two lines, keeping the code within the 100 characters limit.
This commit is contained in:
parent
a4398dc503
commit
ff62734fa1
1 changed files with 6 additions and 5 deletions
|
@ -149,11 +149,12 @@ class Commands:
|
|||
files = self.coder.get_all_relative_files()
|
||||
for word in args.split():
|
||||
matched_files = [file for file in files if word in file]
|
||||
if not matched_files:
|
||||
if self.coder.repo is not None:
|
||||
create_file = Confirm.ask(
|
||||
f"[bright_black]No files matched '{word}'. Do you want to create the file and add it to git?"
|
||||
)
|
||||
if not matched_files:
|
||||
if self.coder.repo is not None:
|
||||
create_file = Confirm.ask(
|
||||
f"[bright_black]No files matched '{word}'. "
|
||||
"Do you want to create the file and add it to git?"
|
||||
)
|
||||
else:
|
||||
create_file = Confirm.ask(
|
||||
f"[bright_black]No files matched '{word}'. Do you want to create the file?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue