style: Apply linter to aider/watch.py

This commit is contained in:
Paul Gauthier (aider) 2025-04-25 07:54:35 -07:00
parent e743394537
commit df1a0c5b8d

View file

@ -65,7 +65,9 @@ class FileWatcher:
"""Watches source files for changes and AI comments"""
# Compiled regex pattern for AI comments
ai_comment_pattern = re.compile(r"(?:#|//|--|;+) *(ai\b.*|ai\b.*|.*\bai[?!]?) *$", re.IGNORECASE)
ai_comment_pattern = re.compile(
r"(?:#|//|--|;+) *(ai\b.*|ai\b.*|.*\bai[?!]?) *$", re.IGNORECASE
)
def __init__(self, coder, gitignores=None, verbose=False, analytics=None, root=None):
self.coder = coder