From 5202fd49f3f6ca0572b98ac57319d6d8bab47834 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 29 Dec 2024 19:13:06 -0500 Subject: [PATCH 1/4] Add pre-commit definition for codespell --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7478639..58b8469 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,10 @@ repos: additional_dependencies: - mdformat-black - mdformat_tables +- repo: https://github.com/codespell-project/codespell + # Configuration for codespell is in pyproject.toml + rev: v2.3.0 + hooks: + - id: codespell + additional_dependencies: + - tomli From b4051c5820b4d002ef584c0ac8364da820751056 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 29 Dec 2024 19:13:26 -0500 Subject: [PATCH 2/4] [DATALAD RUNCMD] run codespell throughout fixing few left typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- README.md | 4 ++-- sshfs/spec.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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() From ae7bf250d3f318549ea6d2a5fa47e8e679bc5b94 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Mon, 30 Dec 2024 23:18:14 +0545 Subject: [PATCH 3/4] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58b8469..67fba12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,6 @@ repos: - mdformat-black - mdformat_tables - repo: https://github.com/codespell-project/codespell - # Configuration for codespell is in pyproject.toml rev: v2.3.0 hooks: - id: codespell From 6d33c08b01eaac8be551913401fb4ddc6e81885e Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Mon, 30 Dec 2024 23:20:11 +0545 Subject: [PATCH 4/4] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: