diff --git a/aider/watch.py b/aider/watch.py index 3297e6965..de617022f 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -95,7 +95,9 @@ class FileWatcher: if self.verbose: dump(rel_path) - if self.gitignore_spec and self.gitignore_spec.match_file(rel_path.as_posix() + ("/" if path_abs.is_dir() else "")): + if self.gitignore_spec and self.gitignore_spec.match_file( + rel_path.as_posix() + ("/" if path_abs.is_dir() else "") + ): return False if self.verbose: