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

Add DirectorySnapshotDiff.ContextManager #1011

Merged

Conversation

msabramo
Copy link
Contributor

@msabramo msabramo commented Oct 6, 2023

A context manager that creates two directory snapshots and a diff object that represents the difference between the two snapshots.

dir_snapshot_diff_context_manager = DirectorySnapshotDiff.ContextManager("some_path")
with dir_snapshot_diff_context_manager:
    # Do some things that change files...
    ...

print(dir_snapshot_diff_context_manager.diff.files_created)
print(dir_snapshot_diff_context_manager.diff.files_deleted)

@msabramo msabramo force-pushed the DirectorySnapshotDiff.ContextManager branch from 7f50347 to e486f42 Compare October 6, 2023 23:11
@BoboTiG
Copy link
Collaborator

BoboTiG commented Oct 7, 2023

That is awesome :)
Would you mind rebasing your branch on master to benefit of your older PR (+ resolving conflicts ofc) 🙏🏻 ?

A context manager that creates two directory snapshots and a diff object
that represents the difference between the two snapshots.

```python
dir_snapshot_diff_context_manager = DirectorySnapshotDiff.ContextManager("some_path")
with dir_snapshot_diff_context_manager:
    # Do some things that change files...
    ...

print(dir_snapshot_diff_context_manager.diff.files_created)
print(dir_snapshot_diff_context_manager.diff.files_deleted)
```
@msabramo msabramo force-pushed the DirectorySnapshotDiff.ContextManager branch from e486f42 to bb621b2 Compare October 9, 2023 19:23
@msabramo
Copy link
Contributor Author

msabramo commented Oct 9, 2023

Would you mind rebasing your branch on master to benefit of your older PR (+ resolving conflicts ofc) 🙏🏻 ?

Would be happy to! Done!

@BoboTiG
Copy link
Collaborator

BoboTiG commented Oct 9, 2023

I just saw mypy issues. Are they related to the previous PR? 🤔

@msabramo
Copy link
Contributor Author

msabramo commented Oct 9, 2023

I just saw mypy issues. Are they related to the previous PR? 🤔

See #1014...

@BoboTiG BoboTiG merged commit 52d8692 into gorakhargosh:master Oct 9, 2023
24 of 45 checks passed
@BoboTiG
Copy link
Collaborator

BoboTiG commented Oct 9, 2023

Thank you @msabramo 🍾

@msabramo msabramo deleted the DirectorySnapshotDiff.ContextManager branch October 10, 2023 15:45
github-actions bot pushed a commit to wxx9248/CIS-Game-Project-2023W that referenced this pull request Feb 7, 2024
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
williamjallen pushed a commit to Submitty/Submitty that referenced this pull request Mar 2, 2024
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
miniscruff pushed a commit to miniscruff/scopie that referenced this pull request Mar 17, 2024
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Xiayucheng1212 pushed a commit to Xiayucheng1212/Submitty that referenced this pull request Apr 3, 2024
…ty#10221)

Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[Submitty#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[Submitty#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants