From 67d538a499a1249d1a55d181117de61b9a0d3276 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 21 Oct 2024 14:23:11 -0700 Subject: [PATCH] style: format code with linter --- aider/help.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aider/help.py b/aider/help.py index a08033042..1bc3cef21 100755 --- a/aider/help.py +++ b/aider/help.py @@ -57,24 +57,24 @@ def fname_to_url(filepath): return "" # 'website' not found in the path # Extract the part of the path starting from 'website' - relevant_parts = parts[website_index + 1:] + relevant_parts = parts[website_index + 1 :] # Handle _includes directory if relevant_parts and relevant_parts[0] == "_includes": return "" # Join the remaining parts - url_path = '/'.join(relevant_parts) + url_path = "/".join(relevant_parts) # Handle index.md and other .md files if url_path.endswith(index): - url_path = url_path[:-len(index)] + url_path = url_path[: -len(index)] elif url_path.endswith(md): - url_path = url_path[:-len(md)] + ".html" + url_path = url_path[: -len(md)] + ".html" # Ensure the URL starts and ends with '/' - url_path = url_path.strip('/') - + url_path = url_path.strip("/") + return f"https://aider.chat/{url_path}"