mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
style: fix code formatting and whitespace
This commit is contained in:
parent
094d2e12a4
commit
11c2eab967
1 changed files with 6 additions and 3 deletions
|
@ -75,6 +75,7 @@ class FileWatcher:
|
||||||
|
|
||||||
def create_filter_func(self, gitignore_spec, ignore_func):
|
def create_filter_func(self, gitignore_spec, ignore_func):
|
||||||
"""Creates a filter function for the file watcher"""
|
"""Creates a filter function for the file watcher"""
|
||||||
|
|
||||||
def filter_func(change_type, path):
|
def filter_func(change_type, path):
|
||||||
path_obj = Path(path)
|
path_obj = Path(path)
|
||||||
path_abs = path_obj.absolute()
|
path_abs = path_obj.absolute()
|
||||||
|
@ -123,7 +124,9 @@ class FileWatcher:
|
||||||
|
|
||||||
def watch_files():
|
def watch_files():
|
||||||
try:
|
try:
|
||||||
for changes in watch(self.root, watch_filter=filter_func, stop_event=self.stop_event):
|
for changes in watch(
|
||||||
|
self.root, watch_filter=filter_func, stop_event=self.stop_event
|
||||||
|
):
|
||||||
changed_files = {str(Path(change[1])) for change in changes}
|
changed_files = {str(Path(change[1])) for change in changes}
|
||||||
result = {}
|
result = {}
|
||||||
for file in changed_files:
|
for file in changed_files:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue