style(pre-commit): apply python style from pre-commit hooks

This commit is contained in:
MDW 2025-04-16 17:40:01 +02:00
parent d127d45669
commit 09acfc8147
No known key found for this signature in database
4 changed files with 5 additions and 2 deletions

View file

@ -5,5 +5,6 @@ from .editblock_fenced_prompts import EditBlockFencedPrompts
class EditBlockFencedCoder(EditBlockCoder):
"""A coder that uses fenced search/replace blocks for code modifications."""
edit_format = "diff-fenced"
gpt_prompts = EditBlockFencedPrompts()

View file

@ -5,6 +5,7 @@ from .help_prompts import HelpPrompts
class HelpCoder(Coder):
"""Interactive help and documentation about aider."""
edit_format = "help"
gpt_prompts = HelpPrompts()

View file

@ -1,10 +1,11 @@
import os
import oslex
import re
import shlex
import subprocess
import sys
import traceback
import warnings
import oslex
from dataclasses import dataclass
from pathlib import Path

View file

@ -155,7 +155,7 @@ def test_ai_comment_pattern():
assert (
question_js_has_bang == "?"
), "Expected at least one bang (!) comment in watch_question.js fixture"
# Test Lisp fixture
lisp_path = fixtures_dir / "watch.lisp"
lisp_lines, lisp_comments, lisp_has_bang = watcher.get_ai_comments(str(lisp_path))