-
-
Notifications
You must be signed in to change notification settings - Fork 708
Comparing changes
Open a pull request
base repository: gorakhargosh/watchdog
base: v3.0.0
head repository: gorakhargosh/watchdog
compare: v4.0.0
- 18 commits
- 45 files changed
- 5 contributors
Commits on Mar 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a4f28a1 - Browse repository at this point
Copy the full SHA a4f28a1View commit details
Commits on Mar 29, 2023
-
Use SPDX license identifier (#984)
Use SPDX license identifier: Apache-2.0 This will help tools to produce valid SPDX. Signed-off-by: Marc-Etienne Vargenau <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2cdb2e9 - Browse repository at this point
Copy the full SHA 2cdb2e9View commit details
Commits on Apr 4, 2023
-
[events] Log
FileOpenedEvent
, andFileClosedEvent
, events in `Log……gingEventHandler` Also enhanced events type annotations.
Configuration menu - View commit details
-
Copy full SHA for f3dfc4b - Browse repository at this point
Copy the full SHA f3dfc4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d825a94 - Browse repository at this point
Copy the full SHA d825a94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 916af32 - Browse repository at this point
Copy the full SHA 916af32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30a149a - Browse repository at this point
Copy the full SHA 30a149aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f991928 - Browse repository at this point
Copy the full SHA f991928View commit details
Commits on Apr 22, 2023
-
* [events] Use `dataclass` - [events] `FileSystemEvent`, and subclasses, are now `dataclass`es, and their `repr()` has changed - [windows] `WinAPINativeEvent` is now a `dataclass`, and its `repr()` has changed * chore: run black with line-lentgh=120
Configuration menu - View commit details
-
Copy full SHA for 41fca1e - Browse repository at this point
Copy the full SHA 41fca1eView commit details -
[windows] Remove the
WATCHDOG_TRAVERSE_MOVED_DIR_DELAY
hack (#986)The `observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY` hack was removed. The constant will be kept to prevent breaking other softwares.
Configuration menu - View commit details
-
Copy full SHA for 363fe62 - Browse repository at this point
Copy the full SHA 363fe62View commit details
Commits on May 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 48c49a1 - Browse repository at this point
Copy the full SHA 48c49a1View commit details
Commits on Jul 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 75a3289 - Browse repository at this point
Copy the full SHA 75a3289View commit details
Commits on Oct 7, 2023
-
feat: Add typing to
dirsnapshot
(#1012)Before: ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●) $ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py src/watchdog/utils/dirsnapshot.py:82: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:88: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:93: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:141: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:144: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:162: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:167: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:172: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:177: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:187: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:194: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:204: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:211: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:241: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:258: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:290: error: Function is missing a return type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:296: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:302: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:307: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:310: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:313: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:316: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:331: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:340: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:343: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:354: error: Function is missing a type annotation [no-untyped-def] src/watchdog/utils/dirsnapshot.py:364: error: Function is missing a return type annotation [no-untyped-def] Found 27 errors in 1 file (checked 1 source file) ``` After: ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●●) $ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py Success: no issues found in 1 source file ```
Configuration menu - View commit details
-
Copy full SHA for 5f9d93c - Browse repository at this point
Copy the full SHA 5f9d93cView commit details
Commits on Oct 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2338837 - Browse repository at this point
Copy the full SHA 2338837View commit details -
feat: Add
DirectorySnapshotDiff.ContextManager
(#1011)* Add DirectorySnapshotDiff.ContextManager 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) ``` * Add entry to changelog.rst * Add typing to ContextManager.__init__
Configuration menu - View commit details
-
Copy full SHA for 52d8692 - Browse repository at this point
Copy the full SHA 52d8692View commit details
Commits on Oct 10, 2023
-
style: run black & isort on inotify (#1015)
* Run black on inotify Run `black` on `src/watchdog/observers/inotify.py`. Fixes failing `flake8` tests: Before: ------- ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●) $ python -m tox -e flake8 flake8: install_deps> python -I -m pip install -r requirements-tests.txt .pkg: _optional_hooks> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ flake8: install_package_deps> python -I -m pip install 'PyYAML>=3.10' flake8: install_package> python -I -m pip install --force-reinstall --no-deps /Users/abramowi/Code/OpenSource/watchdog/.tox/.tmp/package/12/watchdog-3.0.1-0.editable-cp310-cp310-macosx_12_0_arm64.whl flake8: commands[0]> python -m flake8 docs tools src tests setup.py src/watchdog/observers/inotify.py:224:86: W504 line break after binary operator src/watchdog/observers/inotify.py:225:88: W504 line break after binary operator flake8: exit 1 (0.40 seconds) /Users/abramowi/Code/OpenSource/watchdog> python -m flake8 docs tools src tests setup.py pid=76654 .pkg: _exit> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ flake8: FAIL code 1 (9.23=setup[8.83]+cmd[0.40] seconds) evaluation failed :( (10.10 seconds) ``` After: ------ ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●) $ python -m tox -e flake8 .pkg: _optional_hooks> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ flake8: install_package> python -I -m pip install --force-reinstall --no-deps /Users/abramowi/Code/OpenSource/watchdog/.tox/.tmp/package/13/watchdog-3.0.1-0.editable-cp310-cp310-macosx_12_0_arm64.whl flake8: commands[0]> python -m flake8 docs tools src tests setup.py .pkg: _exit> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ flake8: OK (1.59=setup[1.11]+cmd[0.48] seconds) congratulations :) (2.45 seconds) ``` * Create pyproject.toml * Run black again * Run isort --------- Co-authored-by: Mickaël Schoentgen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e4e2f8e - Browse repository at this point
Copy the full SHA e4e2f8eView commit details -
fix: mypy "type: ignore" comment errors (#1016)
Before: ------- ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master) $ python -m tox -e mypy .pkg: _optional_hooks> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ mypy: install_package> python -I -m pip install --force-reinstall --no-deps /Users/abramowi/Code/OpenSource/watchdog/.tox/.tmp/package/27/watchdog-3.0.1-0.editable-cp310-cp310-macosx_12_0_arm64.whl mypy: commands[0]> mypy src/watchdog/observers/fsevents2.py:32: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code [unused-ignore] src/watchdog/observers/fsevents2.py:33: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code [unused-ignore] src/watchdog/observers/fsevents.py:32: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code [unused-ignore] tests/test_fsevents.py:19: error: Unused "type: ignore" comment, use narrower [import-not-found] instead of [import] code [unused-ignore] tests/test_skip_repeats_queue.py:109: error: Unused "type: ignore" comment, use narrower [import-untyped] instead of [import] code [unused-ignore] Found 5 errors in 4 files (checked 48 source files) mypy: exit 1 (0.63 seconds) /Users/abramowi/Code/OpenSource/watchdog> mypy pid=24917 .pkg: _exit> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ mypy: FAIL code 1 (1.67=setup[1.04]+cmd[0.63] seconds) evaluation failed :( (2.49 seconds) ``` After: ------ ``` (.venv) abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (fix-mypy-type-ignore-import-errors) $ python -m tox -e mypy .pkg: _optional_hooks> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_editable> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ mypy: install_package> python -I -m pip install --force-reinstall --no-deps /Users/abramowi/Code/OpenSource/watchdog/.tox/.tmp/package/28/watchdog-3.0.1-0.editable-cp310-cp310-macosx_12_0_arm64.whl mypy: commands[0]> mypy Success: no issues found in 48 source files .pkg: _exit> python /Users/abramowi/Code/OpenSource/watchdog/.venv/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ mypy: OK (1.67=setup[1.05]+cmd[0.62] seconds) congratulations :) (2.44 seconds) ```
Configuration menu - View commit details
-
Copy full SHA for 6cfe9cc - Browse repository at this point
Copy the full SHA 6cfe9ccView commit details -
chore: Update supported Python versions (drop 3.7, add 3.12) (#1017)
* tox.ini: Update supported versions as described at https://devguide.python.org/versions/ Fixes: GH-971 * Update more stuff to say 3.8+ instead of 3.7+ * tox.ini: Remove py312 It seems tox doesn't support it yet. * .github/workflows/tests.yml: Remove "3.7" * Revert "tox.ini: Remove py312" This reverts commit 75c3edf. * .github/workflows/tests.yml: Add "3.12" * Update changelog.rst --------- Co-authored-by: Mickaël Schoentgen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6cdf07e - Browse repository at this point
Copy the full SHA 6cdf07eView commit details
Commits on Feb 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7d651ac - Browse repository at this point
Copy the full SHA 7d651acView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.0.0...v4.0.0