mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
style: format long lines in main.py
This commit is contained in:
parent
7d117d05c5
commit
28fab9548b
1 changed files with 12 additions and 4 deletions
|
@ -392,11 +392,15 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
if "'bool' object has no attribute 'strip'" in str(e):
|
if "'bool' object has no attribute 'strip'" in str(e):
|
||||||
io.tool_error("Configuration error detected.")
|
io.tool_error("Configuration error detected.")
|
||||||
io.tool_output("It seems you have 'yes:' in one of your configuration files.")
|
io.tool_output("It seems you have 'yes:' in one of your configuration files.")
|
||||||
io.tool_output("Please replace 'yes:' with 'yes-always:' in the relevant .aider.conf.yml file.")
|
io.tool_output(
|
||||||
|
"Please replace 'yes:' with 'yes-always:' in the relevant .aider.conf.yml file."
|
||||||
|
)
|
||||||
io.tool_output("Configuration files are searched for in this order:")
|
io.tool_output("Configuration files are searched for in this order:")
|
||||||
for config_file in default_config_files:
|
for config_file in default_config_files:
|
||||||
io.tool_output(f" - {config_file}")
|
io.tool_output(f" - {config_file}")
|
||||||
io.tool_output("For more information, refer to the aider documentation on configuration.")
|
io.tool_output(
|
||||||
|
"For more information, refer to the aider documentation on configuration."
|
||||||
|
)
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
@ -411,11 +415,15 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
if "'bool' object has no attribute 'strip'" in str(e):
|
if "'bool' object has no attribute 'strip'" in str(e):
|
||||||
io.tool_error("Configuration error detected.")
|
io.tool_error("Configuration error detected.")
|
||||||
io.tool_output("It seems you have 'yes:' in one of your configuration files.")
|
io.tool_output("It seems you have 'yes:' in one of your configuration files.")
|
||||||
io.tool_output("Please replace 'yes:' with 'yes-always:' in the relevant .aider.conf.yml file.")
|
io.tool_output(
|
||||||
|
"Please replace 'yes:' with 'yes-always:' in the relevant .aider.conf.yml file."
|
||||||
|
)
|
||||||
io.tool_output("Configuration files are searched for in this order:")
|
io.tool_output("Configuration files are searched for in this order:")
|
||||||
for config_file in default_config_files:
|
for config_file in default_config_files:
|
||||||
io.tool_output(f" - {config_file}")
|
io.tool_output(f" - {config_file}")
|
||||||
io.tool_output("For more information, refer to the aider documentation on configuration.")
|
io.tool_output(
|
||||||
|
"For more information, refer to the aider documentation on configuration."
|
||||||
|
)
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue