diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4688c85..27cba0e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ on: push name: Publish jobs: - pulish: + publish: runs-on: ubuntu-latest steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7478639..67fba12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,9 @@ repos: additional_dependencies: - mdformat-black - mdformat_tables +- repo: https://github.com/codespell-project/codespell + rev: v2.3.0 + hooks: + - id: codespell + additional_dependencies: + - tomli diff --git a/README.md b/README.md index 56165b2..0a3921c 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ You can also create new files through either putting a local file with `put_file ```py >>> with fs.open('/tmp/message.dat', 'wb') as stream: -... stream.write(b'super secret messsage!') +... stream.write(b'super secret message!') ... ``` @@ -85,7 +85,7 @@ And either download it through `get_file` or simply read it on the fly with open >>> with fs.open('/tmp/message.dat') as stream: ... print(stream.read()) ... -b'super secret messsage!' +b'super secret message!' ``` There are also a lot of other basic filesystem operations, such as `mkdir`, `touch` and `find`; diff --git a/sshfs/spec.py b/sshfs/spec.py index 6dba100..046a6ec 100644 --- a/sshfs/spec.py +++ b/sshfs/spec.py @@ -105,7 +105,7 @@ async def _finalize(self, pool, stack): # If an error occurs while the SSHFile is trying to # open the native file, then the client might get broken - # due to partial initalization. We are just going to ignore + # due to partial initialization. We are just going to ignore # the errors that arises on the finalization layer with suppress(BrokenPipeError): await stack.aclose()