From 40b49b0950f3545d4ef376c0051c9bb383ec4a86 Mon Sep 17 00:00:00 2001 From: "Yaroslav O. Halchenko" Date: Thu, 29 May 2025 14:59:37 -0400 Subject: [PATCH 1/3] Add github action to codespell main on push and PRs --- .github/workflows/codespell.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..c59e047 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 From c51f031741386a34566adf8026650763e844aa7c Mon Sep 17 00:00:00 2001 From: "Yaroslav O. Halchenko" Date: Thu, 29 May 2025 14:59:37 -0400 Subject: [PATCH 2/3] Add rudimentary codespell config --- .codespellrc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..770b512 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git*,.codespellrc +check-hidden = true +# ignore-regex = +ignore-words-list = ans From 976bfbe4ea7086e0dff01b9d099f6858dfe19197 Mon Sep 17 00:00:00 2001 From: "Yaroslav O. Halchenko" Date: Thu, 29 May 2025 15:00:14 -0400 Subject: [PATCH 3/3] [DATALAD RUNCMD] chore: run codespell throughout fixing a few new typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- Zarr.m | 2 +- test/tZarrCreate.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Zarr.m b/Zarr.m index 8515beb..04e7a1a 100644 --- a/Zarr.m +++ b/Zarr.m @@ -95,7 +95,7 @@ end % See if the parent path exist. Continue recursing until an - % exisiting parent path is found + % existing parent path is found [pathToParentFolder, ~, ~] = fileparts(path); existingParent = Zarr.getExistingParentFolder(pathToParentFolder); diff --git a/test/tZarrCreate.m b/test/tZarrCreate.m index ac306a1..5cf8f8d 100644 --- a/test/tZarrCreate.m +++ b/test/tZarrCreate.m @@ -163,7 +163,7 @@ function invalidSizeInput(testcase) function invalidDatatype(testcase) - % Verify the error when an usupported datatype is used. + % Verify the error when an unsupported datatype is used. testcase.verifyError(@()zarrcreate(testcase.ArrPathWrite,... testcase.ArrSize,Datatype="bla"),... 'MATLAB:validators:mustBeMember');