From 5f40aaabb5e27262f2869c5b8d5f9a9ea0bafdf7 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 18 Nov 2024 07:46:28 -0800 Subject: [PATCH] style: Lint and clean up code formatting in issues.py script --- scripts/issues.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/issues.py b/scripts/issues.py index a03696f9b..35685985a 100755 --- a/scripts/issues.py +++ b/scripts/issues.py @@ -22,11 +22,9 @@ def has_been_reopened(issue_number): # Load environment variables from .env file load_dotenv() -BOT_SUFFIX = ( - """ +BOT_SUFFIX = """ Note: A [bot script](https://github.com/Aider-AI/aider/blob/main/scripts/issues.py) made these updates to the issue. -""" # noqa -) +""" # noqa DUPLICATE_COMMENT = ( """Thanks for trying aider and filing this issue. @@ -294,9 +292,7 @@ def handle_stale_closing(all_issues, auto_yes): continue # Add closing comment - comment_url = ( - f"{GITHUB_API_URL}/repos/{REPO_OWNER}/{REPO_NAME}/issues/{issue['number']}/comments" - ) + comment_url = f"{GITHUB_API_URL}/repos/{REPO_OWNER}/{REPO_NAME}/issues/{issue['number']}/comments" response = requests.post( comment_url, headers=headers, json={"body": CLOSE_STALE_COMMENT} )