diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..3c2071b --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git,package-lock.json,.codespellrc +check-hidden = true +# ignore-regex = +# ignore-words-list = diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..7c9eafb --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +# 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: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/src/JsonBrowser/JsonKeyLink.svelte b/src/JsonBrowser/JsonKeyLink.svelte index f164c55..551f16d 100644 --- a/src/JsonBrowser/JsonKeyLink.svelte +++ b/src/JsonBrowser/JsonKeyLink.svelte @@ -12,7 +12,7 @@ export let name; export let version; - // mapping from Spec key-words -> #achors on ngff page + // mapping from Spec key-words -> #anchors on ngff page const urls_01 = { "multiscales": "multiscale-md", "omero": "omero-md", diff --git a/src/JsonValidator/MultiscaleArrays/ZarrArray/ChunkLoader.svelte b/src/JsonValidator/MultiscaleArrays/ZarrArray/ChunkLoader.svelte index a309ce6..2774aa1 100644 --- a/src/JsonValidator/MultiscaleArrays/ZarrArray/ChunkLoader.svelte +++ b/src/JsonValidator/MultiscaleArrays/ZarrArray/ChunkLoader.svelte @@ -39,14 +39,14 @@ // e.g. chunkIndices is (0, 1, 0, 0) and chunk is (1, 125, 125, 125) // we want to get [0, 125:250, 0:125, 0:125] let ch = store.meta.chunks; - const indecies = get(chunkIndices).map((index, dim) => { + const indices = get(chunkIndices).map((index, dim) => { if (ch[dim] > 1) { return slice(index * ch[dim], (index + 1) * ch[dim]); } else { return index * ch[dim]; } }); - chunk = await store.get(indecies); + chunk = await store.get(indices); } chunkIndices.subscribe(function () {