mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
style: Apply linter formatting to main.py
This commit is contained in:
parent
d9adaa5020
commit
88ee089d86
1 changed files with 3 additions and 2 deletions
|
@ -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}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue