diff --git a/pytest_watcher/event_handler.py b/pytest_watcher/event_handler.py index 9d72400..aaf1678 100644 --- a/pytest_watcher/event_handler.py +++ b/pytest_watcher/event_handler.py @@ -46,7 +46,11 @@ def _is_event_watched(self, event: events.FileSystemEvent) -> bool: # For file moved type events we are also interested in the destination paths.append(event.dest_path) - return match_any_paths(paths, self.patterns, self.ignore_patterns) + return match_any_paths( + paths, + included_patterns=self.patterns, + excluded_patterns=self.ignore_patterns, + ) def dispatch(self, event: events.FileSystemEvent) -> None: if self._is_event_watched(event):