mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
style: format code in special.py for improved readability
This commit is contained in:
parent
7801aa8cfd
commit
181375c89d
1 changed files with 6 additions and 2 deletions
|
@ -190,7 +190,11 @@ def is_important(file_path):
|
||||||
dir_name = os.path.dirname(file_path)
|
dir_name = os.path.dirname(file_path)
|
||||||
|
|
||||||
# Check for GitHub Actions workflow files
|
# 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
|
return True
|
||||||
|
|
||||||
# Check for IDE-specific directories
|
# Check for IDE-specific directories
|
||||||
|
@ -206,7 +210,7 @@ def is_important(file_path):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return file_name in IMPORTANT_FILES or any(
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue