style: fix code formatting and whitespace

This commit is contained in:
Paul Gauthier (aider) 2024-11-27 16:13:07 -08:00
parent 094d2e12a4
commit 11c2eab967

View file

@ -75,6 +75,7 @@ class FileWatcher:
def create_filter_func(self, gitignore_spec, ignore_func):
"""Creates a filter function for the file watcher"""
def filter_func(change_type, path):
path_obj = Path(path)
path_abs = path_obj.absolute()
@ -123,7 +124,9 @@ class FileWatcher:
def watch_files():
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}
result = {}
for file in changed_files: