refactor: Move FileWatcher initialization to __init__ method

This commit is contained in:
Paul Gauthier 2024-11-27 16:15:08 -08:00 committed by Paul Gauthier (aider)
parent f9bcfa14e0
commit 3b8a771909

View file

@ -391,7 +391,7 @@ class InputOutput:
):
self.rule()
# Initialize and start the file watcher
# ai: initialize this in __init__!
self.file_watcher = FileWatcher(root, encoding=self.encoding)
gitignore = [str(Path(root) / ".gitignore")]
self.file_watcher.start(gitignores=gitignore)