mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
style: format code with linter
This commit is contained in:
parent
aac2274851
commit
7eb761fd98
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ class EditBlockCoder(Coder):
|
|||
|
||||
def handle_shell_commands(self, commands_str):
|
||||
commands = commands_str.strip().splitlines()
|
||||
command_count = sum(1 for cmd in commands if cmd.strip() and not cmd.strip().startswith("#"))
|
||||
command_count = sum(
|
||||
1 for cmd in commands if cmd.strip() and not cmd.strip().startswith("#")
|
||||
)
|
||||
prompt = "Run shell command?" if command_count == 1 else "Run shell commands?"
|
||||
if not self.io.confirm_ask(prompt, subject="\n".join(commands)):
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue