Skip to content

Commit

Permalink
Merge pull request #104 from ikalnytskyi/chore/typos
Browse files Browse the repository at this point in the history
Run typos on CI
  • Loading branch information
ikalnytskyi authored Nov 17, 2024
2 parents 7a0a683 + 09fe931 commit 1c93f6e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ on:
branches: [master]

jobs:
typo:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Check spelling of file.txt
uses: crate-ci/typos@master

lint:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ are done with it.
picobox provides a :class:`picobox.Stack` class to create an independent
non overlapping stack with boxes suitable to be used in such cases.

Just create a global instance of stack (globals themeselves aren't bad),
Just create a global instance of stack (globals themselves aren't bad),
and use it as you'd use picobox stacked interface:

.. code:: python
Expand Down
4 changes: 2 additions & 2 deletions src/picobox/_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def push(self, box: Box, *, chain: bool = False) -> AbstractContextManager[Box]:
this option set to ``True``.
"""
# list.append() is a thread-safe operation in CPython, yet the safety
# is not guranteed by the language itself. So the lock is used here to
# is not guaranteed by the language itself. So the lock is used here to
# ensure the code works properly even when running on alternative
# implementations.
with self._lock:
Expand All @@ -156,7 +156,7 @@ def pop(self) -> Box:
:raises IndexError: If the stack is empty and there's nothing to pop.
"""
# list.append() is a thread-safe operation in CPython, yet the safety
# is not guranteed by the language itself. So the lock is used here to
# is not guaranteed by the language itself. So the lock is used here to
# ensure the code works properly even when running on alternative
# implementations.
with self._lock:
Expand Down

0 comments on commit 1c93f6e

Please sign in to comment.