mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Ignore invalid escape sequence warning for a specific line in coder.py.
# Context: USER: coder.py:554:56: W605 invalid escape sequence '\[' ... add comment to ignore ASSISTANT: To fix the invalid escape sequence warning, you can add a comment to ignore the warning for that specific line. Here's the change: ```python coder.py <<<<<<< ORIGINAL res = Prompt.ask( "[red]Commit before the chat proceeds? \[y/n/commit message]" ).strip() ======= res = Prompt.ask( "[red]Commit before the chat proceeds? \[y/n/commit message]" # noqa: W605 ).strip() >>>>>>> UPDATED ```
This commit is contained in:
parent
04d01a9077
commit
045acb96d3
1 changed files with 2 additions and 3 deletions
3
coder.py
3
coder.py
|
@ -551,9 +551,8 @@ class Coder:
|
||||||
self.console.print(f"[red]Suggested commit message:\n{commit_message}\n")
|
self.console.print(f"[red]Suggested commit message:\n{commit_message}\n")
|
||||||
|
|
||||||
res = Prompt.ask(
|
res = Prompt.ask(
|
||||||
"[red]Commit before the chat proceeds? \[y/n/commit message]"
|
"[red]Commit before the chat proceeds? \[y/n/commit message]" # noqa: W605
|
||||||
).strip()
|
).strip()
|
||||||
|
|
||||||
if res.lower() in ["n", "no"]:
|
if res.lower() in ["n", "no"]:
|
||||||
self.console.print("[red]Skipped commmit.")
|
self.console.print("[red]Skipped commmit.")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue