diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..9fdacdf5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[tool.black] +target-version = ["py38"] +line-length = 120 +safe = true + +[tool.isort] +profile = "black" diff --git a/src/watchdog/observers/inotify.py b/src/watchdog/observers/inotify.py index 754ca5a6..fe967302 100644 --- a/src/watchdog/observers/inotify.py +++ b/src/watchdog/observers/inotify.py @@ -221,9 +221,13 @@ def get_event_mask_from_filter(self): elif cls in (DirCreatedEvent, FileCreatedEvent): event_mask |= InotifyConstants.IN_MOVE | InotifyConstants.IN_CREATE elif cls is DirModifiedEvent: - event_mask |= (InotifyConstants.IN_MOVE | InotifyConstants.IN_ATTRIB | - InotifyConstants.IN_MODIFY | InotifyConstants.IN_CREATE | - InotifyConstants.IN_CLOSE_WRITE) + event_mask |= ( + InotifyConstants.IN_MOVE + | InotifyConstants.IN_ATTRIB + | InotifyConstants.IN_MODIFY + | InotifyConstants.IN_CREATE + | InotifyConstants.IN_CLOSE_WRITE + ) elif cls is FileModifiedEvent: event_mask |= InotifyConstants.IN_ATTRIB | InotifyConstants.IN_MODIFY elif cls in (DirDeletedEvent, FileDeletedEvent):