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:
Paul Gauthier 2023-05-08 23:01:01 -07:00
parent 04d01a9077
commit 045acb96d3

View file

@ -551,9 +551,8 @@ class Coder:
self.console.print(f"[red]Suggested commit message:\n{commit_message}\n")
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()
if res.lower() in ["n", "no"]:
self.console.print("[red]Skipped commmit.")
return
@ -618,4 +617,4 @@ def main():
if __name__ == "__main__":
status = main()
sys.exit(status)
sys.exit(status)