From 9a4f3b8d8e419f00d980924e9ecf55c96d33341d Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 18 Mar 2025 18:23:45 -0700 Subject: [PATCH] style: Format code and add whitespace for readability --- scripts/update-history.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/update-history.py b/scripts/update-history.py index 770981202..727b8f034 100755 --- a/scripts/update-history.py +++ b/scripts/update-history.py @@ -35,6 +35,7 @@ def run_git_log(): result = subprocess.run(cmd, capture_output=True, text=True) return result.stdout + def run_git_diff(): latest_ver = get_latest_version_from_history() cmd = [ @@ -85,7 +86,7 @@ def main(): with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".log") as tmp_log: tmp_log.write(log_content) log_path = tmp_log.name - + with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".diff") as tmp_diff: tmp_diff.write(diff_content) diff_path = tmp_diff.name @@ -101,7 +102,17 @@ def main(): # Construct and run the aider command 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) # Read back the updated history