Skip to content

Commit 47d78ac

Browse files
yarikopticskshetry
andauthored
Add codespell support (config, workflow to detect/not fix) and make it fix few typos (#56)
Co-authored-by: skshetry <[email protected]>
1 parent 34b52b2 commit 47d78ac

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: push
33
name: Publish
44

55
jobs:
6-
pulish:
6+
publish:
77
runs-on: ubuntu-latest
88

99
steps:

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ repos:
1717
additional_dependencies:
1818
- mdformat-black
1919
- mdformat_tables
20+
- repo: https://github.com/codespell-project/codespell
21+
rev: v2.3.0
22+
hooks:
23+
- id: codespell
24+
additional_dependencies:
25+
- tomli

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ You can also create new files through either putting a local file with `put_file
7575

7676
```py
7777
>>> with fs.open('/tmp/message.dat', 'wb') as stream:
78-
... stream.write(b'super secret messsage!')
78+
... stream.write(b'super secret message!')
7979
...
8080
```
8181

@@ -85,7 +85,7 @@ And either download it through `get_file` or simply read it on the fly with open
8585
>>> with fs.open('/tmp/message.dat') as stream:
8686
... print(stream.read())
8787
...
88-
b'super secret messsage!'
88+
b'super secret message!'
8989
```
9090

9191
There are also a lot of other basic filesystem operations, such as `mkdir`, `touch` and `find`;

sshfs/spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def _finalize(self, pool, stack):
105105

106106
# If an error occurs while the SSHFile is trying to
107107
# open the native file, then the client might get broken
108-
# due to partial initalization. We are just going to ignore
108+
# due to partial initialization. We are just going to ignore
109109
# the errors that arises on the finalization layer
110110
with suppress(BrokenPipeError):
111111
await stack.aclose()

0 commit comments

Comments
 (0)