From 181375c89d3a93e51f84b5d2bfee4ca55484d1d8 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 30 Aug 2024 14:37:59 -0700 Subject: [PATCH] style: format code in special.py for improved readability --- aider/special.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aider/special.py b/aider/special.py index c5b88e58b..2885a48d4 100644 --- a/aider/special.py +++ b/aider/special.py @@ -190,7 +190,11 @@ def is_important(file_path): dir_name = os.path.dirname(file_path) # Check for GitHub Actions workflow files - if os.path.basename(dir_name) == "workflows" and os.path.basename(os.path.dirname(dir_name)) == ".github" and file_name.endswith(".yml"): + if ( + os.path.basename(dir_name) == "workflows" + and os.path.basename(os.path.dirname(dir_name)) == ".github" + and file_name.endswith(".yml") + ): return True # Check for IDE-specific directories @@ -206,7 +210,7 @@ def is_important(file_path): return True return file_name in IMPORTANT_FILES or any( - file_path.endswith(os.path.join('', name)) for name in IMPORTANT_FILES + file_path.endswith(os.path.join("", name)) for name in IMPORTANT_FILES )