mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
style: fix linting issues and whitespace in watch.py
This commit is contained in:
parent
130aedc474
commit
25dd9f1f35
1 changed files with 3 additions and 4 deletions
|
@ -10,6 +10,7 @@ from aider.dump import dump # noqa
|
|||
|
||||
VERBOSE = True
|
||||
|
||||
|
||||
def is_source_file(path: Path) -> bool:
|
||||
"""
|
||||
Check if a file is a source file that uses # or // style comments.
|
||||
|
@ -133,13 +134,11 @@ def watch_source_files(
|
|||
if comments := get_ai_comment(file, encoding=encoding):
|
||||
result[file] = comments
|
||||
|
||||
if VERBOSE: dump(result)
|
||||
if VERBOSE:
|
||||
dump(result)
|
||||
yield result
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def get_ai_comment(filepath, encoding="utf-8"):
|
||||
"""Extract all AI comments from a file"""
|
||||
comments = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue