mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
style: format code with linter
This commit is contained in:
parent
6f0d9a09df
commit
7bcd6d4ebb
1 changed files with 7 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
import difflib
|
||||
import math
|
||||
import re
|
||||
import sys
|
||||
import subprocess
|
||||
import sys
|
||||
from difflib import SequenceMatcher
|
||||
from pathlib import Path
|
||||
|
||||
|
@ -42,8 +42,12 @@ class EditBlockCoder(Coder):
|
|||
self.io.tool_output(f"Shell command: {edit}")
|
||||
if self.io.confirm_ask("Do you want to run this command?"):
|
||||
try:
|
||||
result = subprocess.run(edit, shell=True, check=True, text=True, capture_output=True)
|
||||
self.io.tool_output(f"Command executed successfully. Output:\n{result.stdout}")
|
||||
result = subprocess.run(
|
||||
edit, shell=True, check=True, text=True, capture_output=True
|
||||
)
|
||||
self.io.tool_output(
|
||||
f"Command executed successfully. Output:\n{result.stdout}"
|
||||
)
|
||||
if result.stderr:
|
||||
self.io.tool_output(f"Errors:\n{result.stderr}")
|
||||
passed.append(edit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue