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 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 diff --git a/test/tZarrCreate.m b/test/tZarrCreate.m index 545ad67..c13f8c5 100644 --- a/test/tZarrCreate.m +++ b/test/tZarrCreate.m @@ -198,7 +198,7 @@ function invalidSizeInput(testcase) end 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');