style: Apply linter formatting to main.py

This commit is contained in:
Paul Gauthier (aider) 2025-02-04 07:59:32 -08:00
parent d9adaa5020
commit 88ee089d86

View file

@ -159,7 +159,7 @@ def check_gitignore(git_root, io, ask=True):
try: try:
repo = git.Repo(git_root) repo = git.Repo(git_root)
patterns_to_add = [] patterns_to_add = []
if not repo.ignored(".aider"): if not repo.ignored(".aider"):
patterns_to_add.append(".aider*") patterns_to_add.append(".aider*")
if not repo.ignored(".env"): if not repo.ignored(".env"):
@ -196,7 +196,8 @@ def check_gitignore(git_root, io, ask=True):
except OSError as e: except OSError as e:
io.tool_error(f"Error when trying to write to {gitignore_file}: {e}") io.tool_error(f"Error when trying to write to {gitignore_file}: {e}")
io.tool_output( io.tool_output(
"Try running with appropriate permissions or manually add these patterns to .gitignore:" "Try running with appropriate permissions or manually add these patterns to"
" .gitignore:"
) )
for pattern in patterns_to_add: for pattern in patterns_to_add:
io.tool_output(f" {pattern}") io.tool_output(f" {pattern}")