How to use the watch_filter argument
mainThe watch_filter argument in the watch function (and similar functions) allows you to include or ignore specific file changes.
It accepts a callable that takes two arguments:
change: An instance of theChangetype.path: The file path as astr.
The callable must return True to include the change or False to ignore it. You can provide either a custom callable function or an instance of a BaseFilter subclass.