mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 04:05:04 +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
|
VERBOSE = True
|
||||||
|
|
||||||
|
|
||||||
def is_source_file(path: Path) -> bool:
|
def is_source_file(path: Path) -> bool:
|
||||||
"""
|
"""
|
||||||
Check if a file is a source file that uses # or // style comments.
|
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):
|
if comments := get_ai_comment(file, encoding=encoding):
|
||||||
result[file] = comments
|
result[file] = comments
|
||||||
|
|
||||||
if VERBOSE: dump(result)
|
if VERBOSE:
|
||||||
|
dump(result)
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_ai_comment(filepath, encoding="utf-8"):
|
def get_ai_comment(filepath, encoding="utf-8"):
|
||||||
"""Extract all AI comments from a file"""
|
"""Extract all AI comments from a file"""
|
||||||
comments = []
|
comments = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue