mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 05:14:59 +00:00
style: Format code and add whitespace for readability
This commit is contained in:
parent
d9c5ce15f3
commit
9a4f3b8d8e
1 changed files with 13 additions and 2 deletions
|
@ -35,6 +35,7 @@ def run_git_log():
|
||||||
result = subprocess.run(cmd, capture_output=True, text=True)
|
result = subprocess.run(cmd, capture_output=True, text=True)
|
||||||
return result.stdout
|
return result.stdout
|
||||||
|
|
||||||
|
|
||||||
def run_git_diff():
|
def run_git_diff():
|
||||||
latest_ver = get_latest_version_from_history()
|
latest_ver = get_latest_version_from_history()
|
||||||
cmd = [
|
cmd = [
|
||||||
|
@ -101,7 +102,17 @@ def main():
|
||||||
# Construct and run the aider command
|
# Construct and run the aider command
|
||||||
message = history_prompt.format(aider_line=aider_line)
|
message = history_prompt.format(aider_line=aider_line)
|
||||||
|
|
||||||
cmd = ["aider", hist_path, "--read", log_path, diff_path, "--msg", message, "--no-git", "--no-auto-lint"]
|
cmd = [
|
||||||
|
"aider",
|
||||||
|
hist_path,
|
||||||
|
"--read",
|
||||||
|
log_path,
|
||||||
|
diff_path,
|
||||||
|
"--msg",
|
||||||
|
message,
|
||||||
|
"--no-git",
|
||||||
|
"--no-auto-lint",
|
||||||
|
]
|
||||||
subprocess.run(cmd)
|
subprocess.run(cmd)
|
||||||
|
|
||||||
# Read back the updated history
|
# Read back the updated history
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue