Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run black on inotify #1015

Merged
merged 4 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tool.black]
target-version = ["py38"]
line-length = 120
safe = true

[tool.isort]
profile = "black"
10 changes: 7 additions & 3 deletions src/watchdog/observers/inotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading