mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
style: fix linting issues in watch.py
This commit is contained in:
parent
54aebb7d98
commit
fc6e0dfa65
1 changed files with 6 additions and 2 deletions
|
@ -59,7 +59,11 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
|
||||||
|
|
||||||
|
|
||||||
def watch_source_files(
|
def watch_source_files(
|
||||||
directory: str, stop_event=None, gitignores: list[str] = None, ignore_func=None, encoding="utf-8"
|
directory: str,
|
||||||
|
stop_event=None,
|
||||||
|
gitignores: list[str] = None,
|
||||||
|
ignore_func=None,
|
||||||
|
encoding="utf-8",
|
||||||
) -> Set[str]:
|
) -> Set[str]:
|
||||||
"""
|
"""
|
||||||
Watch for changes to source files in the given directory and its subdirectories.
|
Watch for changes to source files in the given directory and its subdirectories.
|
||||||
|
@ -98,7 +102,7 @@ def watch_source_files(
|
||||||
|
|
||||||
# Check if file contains AI markers
|
# Check if file contains AI markers
|
||||||
try:
|
try:
|
||||||
with open(path_abs, encoding=encoding, errors='ignore') as f:
|
with open(path_abs, encoding=encoding, errors="ignore") as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue