From 201abe152445ffc14233c5ae92bee6eabe93b86e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 18 Nov 2024 07:46:00 -0800 Subject: [PATCH] refactor: Improve code formatting and add noqa comment in issues.py script --- scripts/issues.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/issues.py b/scripts/issues.py index dc277e5b2..9251d9ccf 100755 --- a/scripts/issues.py +++ b/scripts/issues.py @@ -23,8 +23,9 @@ def has_been_reopened(issue_number): load_dotenv() BOT_SUFFIX = ( - "\n\nNote: A [bot script](https://github.com/Aider-AI/aider/blob/main/scripts/issues.py) made" - " these updates to the issue." + """ +Note: A [bot script](https://github.com/Aider-AI/aider/blob/main/scripts/issues.py) made these updates to the issue. +""" # noqa ) DUPLICATE_COMMENT = ( @@ -293,7 +294,9 @@ 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} )