mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style(pre-commit): apply python style from pre-commit hooks
This commit is contained in:
parent
d127d45669
commit
09acfc8147
4 changed files with 5 additions and 2 deletions
|
@ -5,5 +5,6 @@ from .editblock_fenced_prompts import EditBlockFencedPrompts
|
||||||
|
|
||||||
class EditBlockFencedCoder(EditBlockCoder):
|
class EditBlockFencedCoder(EditBlockCoder):
|
||||||
"""A coder that uses fenced search/replace blocks for code modifications."""
|
"""A coder that uses fenced search/replace blocks for code modifications."""
|
||||||
|
|
||||||
edit_format = "diff-fenced"
|
edit_format = "diff-fenced"
|
||||||
gpt_prompts = EditBlockFencedPrompts()
|
gpt_prompts = EditBlockFencedPrompts()
|
||||||
|
|
|
@ -5,6 +5,7 @@ from .help_prompts import HelpPrompts
|
||||||
|
|
||||||
class HelpCoder(Coder):
|
class HelpCoder(Coder):
|
||||||
"""Interactive help and documentation about aider."""
|
"""Interactive help and documentation about aider."""
|
||||||
|
|
||||||
edit_format = "help"
|
edit_format = "help"
|
||||||
gpt_prompts = HelpPrompts()
|
gpt_prompts = HelpPrompts()
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
import os
|
import os
|
||||||
|
import oslex
|
||||||
import re
|
import re
|
||||||
|
import shlex
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import warnings
|
import warnings
|
||||||
import oslex
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ def test_ai_comment_pattern():
|
||||||
assert (
|
assert (
|
||||||
question_js_has_bang == "?"
|
question_js_has_bang == "?"
|
||||||
), "Expected at least one bang (!) comment in watch_question.js fixture"
|
), "Expected at least one bang (!) comment in watch_question.js fixture"
|
||||||
|
|
||||||
# Test Lisp fixture
|
# Test Lisp fixture
|
||||||
lisp_path = fixtures_dir / "watch.lisp"
|
lisp_path = fixtures_dir / "watch.lisp"
|
||||||
lisp_lines, lisp_comments, lisp_has_bang = watcher.get_ai_comments(str(lisp_path))
|
lisp_lines, lisp_comments, lisp_has_bang = watcher.get_ai_comments(str(lisp_path))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue