From 261fda2d6ae549b8e9b9cad53e0f8a58f53a9de5 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 30 Jan 2024 22:45:12 -0500 Subject: [PATCH 1/3] Add github action to codespell main on push and PRs --- .github/workflows/codespell.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..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 From 2a8159ffd15537bf3d7aa966eda7c0c350aafcee Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 30 Jan 2024 22:45:12 -0500 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..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 = From a48cfa1252a6b792828d7526b2d9946621277a8d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 30 Jan 2024 22:45:24 -0500 Subject: [PATCH 3/3] [DATALAD RUNCMD] run codespell throughout fixing additional new typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- src/JsonBrowser/JsonKeyLink.svelte | 2 +- .../MultiscaleArrays/ZarrArray/ChunkLoader.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 () {