Skip to content

Commit 1d323ba

Browse files
authored
chore: fix typos discovered by codespell (#1141)
1 parent 0f90ec9 commit 1d323ba

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ files.
202202
Free threaded support
203203
---------------------
204204

205-
`watchdog` has support for being built and run under free-threaded CPython. However, a full thread saftey audit has not been completed, in particular this affects the `macOS FSEvents` interface.
205+
`watchdog` has support for being built and run under free-threaded CPython. However, a full thread safety audit has not been completed, in particular this affects the `macOS FSEvents` interface.
206206

207207
About using watchdog with editors like Vim
208208
------------------------------------------

changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Changelog
136136
- [events] Log ``FileOpenedEvent``, and ``FileClosedEvent``, events in ``LoggingEventHandler``
137137
- [tests] Improve ``FileSystemEvent`` coverage
138138
- [watchmedo] Log all events in ``LoggerTrick``
139-
- [windows] The ``observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY`` hack was removed. The constant will be kept to prevent breaking other softwares.
139+
- [windows] The ``observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY`` hack was removed. The constant will be kept to prevent breaking other software.
140140
- Thanks to our beloved contributors: @BoboTiG, @msabramo
141141

142142
3.0.0
@@ -525,7 +525,7 @@ Changelog
525525

526526
- Event emitters are no longer started on schedule if ``Observer`` is not
527527
already running
528-
- [mac] Fixed usued arguments to pass clang compilation (`#265 <https://github.com/gorakhargosh/watchdog/pull/265>`__)
528+
- [mac] Fixed unused arguments to pass clang compilation (`#265 <https://github.com/gorakhargosh/watchdog/pull/265>`__)
529529
- [snapshot] Fixed a possible race condition crash on directory deletion (`#281 <https://github.com/gorakhargosh/watchdog/pull/281>`__)
530530
- [windows] Fixed an error when watching the same folder again (`#270 <https://github.com/gorakhargosh/watchdog/pull/270>`__)
531531
- Thanks to our beloved contributors: @tamland, @apetrone, @Falldog,

docs/source/hacking.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ Steps to setting up a clean environment:
4242
.. code:: bash
4343
4444
$ . venv/bin/activate
45-
(venv)$ python -m pip instal -e '.'
45+
(venv)$ python -m pip install -e '.'
4646
4747
4. Windows
4848

4949
.. code:: batch
5050
5151
> venv\Scripts\activate
52-
(venv)> python -m pip instal -e '.'
52+
(venv)> python -m pip install -e '.'
5353
5454
That's it with the setup. Now you're ready to hack on |project_name|.
5555

src/watchdog/observers/inotify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def read_event(self) -> GroupedInotifyEvent | None:
200200
return self._move_event_grouper.read_event()
201201

202202
def on_watch_deleted(self, wd: WatchDescriptor) -> None:
203-
"""Called when a watch that ths callback is registered at is removed.
203+
"""Called when a watch that this callback is registered at is removed.
204204
This is the case when the watched object is deleted."""
205205
with self._lock:
206206
if not self.is_active:

src/watchdog/observers/inotify_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def on_event(self, event: InotifyEvent) -> None:
165165
...
166166

167167
def on_watch_deleted(self, wd: WatchDescriptor) -> None:
168-
"""Called when a watch that ths callback is registered at is removed.
168+
"""Called when a watch that this callback is registered at is removed.
169169
This is the case when the watched object is deleted."""
170170
...
171171

src/watchdog/utils/patterns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _full_match(path: PurePath, pattern: str) -> bool:
4444
# Please remove this, backwards_compat.py, and python license attributions
4545
# if/when we can pin a release to python >= 3.13
4646
# Construct a pathlib object using the same class as the path to get the
47-
# same pattern path separater when constructing the regex
47+
# same pattern path separator when constructing the regex
4848
normalized_pattern = str(type(path)(pattern))
4949
regex = translate(normalized_pattern, recursive=True, include_hidden=True, seps=_get_sep(path))
5050
reobj = re.compile(regex)

0 commit comments

Comments
 (0)