From 978890dc902a087b3e1c3d8ddbc2017ea256b8b0 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 19 Apr 2023 13:06:04 -0400 Subject: [PATCH 1/3] Add github action to codespell master on push and PRs --- .github/workflows/codespell.yml | 19 +++++++++++++++++++ 1 file changed, 19 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 00000000..5768d7c6 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,19 @@ +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Codespell + uses: codespell-project/actions-codespell@v1 From 4274f71966bd73abd87dc350ae558f0f29559234 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 19 Apr 2023 13:06:04 -0400 Subject: [PATCH 2/3] Add rudimentary codespell config --- .codespellrc | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000..5f15a489 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,4 @@ +[codespell] +skip = .git,*.pdf,*.svg,package-lock.json +# +# ignore-words-list = From 41bd5b2a63c8d8cbb440aad2cfd89cc488dc793c Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 19 Apr 2023 13:07:09 -0400 Subject: [PATCH 3/3] [DATALAD RUNCMD] run codespell throughout === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- README.md | 2 +- components/category-select-table.vue | 2 +- components/file-selector.vue | 2 +- .../fixtures/examples/good/ds003653_participant.json | 4 ++-- cypress/fixtures/examples/good/example.json | 4 ++-- .../examples/interesting/ds001919_participant.tsv | 12 ++++++------ .../examples/interesting/ds002134_participant.json | 2 +- pages/categorization.vue | 2 +- pages/download.vue | 2 +- test_contributions.md | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index bc541c44..8e02845f 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ npm run generate npm run deploy ``` -See the [Nuxt documention](https://nuxtjs.org/deployments/github-pages/) for more details. +See the [Nuxt documentation](https://nuxtjs.org/deployments/github-pages/) for more details. ## Special Directories diff --git a/components/category-select-table.vue b/components/category-select-table.vue index d1a44dac..80b77b19 100644 --- a/components/category-select-table.vue +++ b/components/category-select-table.vue @@ -71,7 +71,7 @@ // 1. Save the newly selected category, if given this.selectedCategory = p_row[0].category; - // 2. Tell the parent page about the category selction + // 2. Tell the parent page about the category selection this.$emit("category-select", { category: this.selectedCategory }); } }, diff --git a/components/file-selector.vue b/components/file-selector.vue index c2553491..defba814 100644 --- a/components/file-selector.vue +++ b/components/file-selector.vue @@ -77,7 +77,7 @@ complete: results => { - // I. Returned results inlcude data and filename + // I. Returned results include data and filename const myJson = { data: results.data, diff --git a/cypress/fixtures/examples/good/ds003653_participant.json b/cypress/fixtures/examples/good/ds003653_participant.json index 16676396..c29033b5 100644 --- a/cypress/fixtures/examples/good/ds003653_participant.json +++ b/cypress/fixtures/examples/good/ds003653_participant.json @@ -33,11 +33,11 @@ }, "medload": { "Description": "reflects the number of dosage of psychotropic medications taken by participants. Higher numbers correspond to more medications and/or higher medication dosage ", - "Units": "arbitraty units" + "Units": "arbitrary units" }, "iq": { "Description": "IQ derived based on the NART assessment.", - "Units": "arbitraty units" + "Units": "arbitrary units" }, "session": { "Description": "scanning session", diff --git a/cypress/fixtures/examples/good/example.json b/cypress/fixtures/examples/good/example.json index f5dd35f4..df6d885c 100644 --- a/cypress/fixtures/examples/good/example.json +++ b/cypress/fixtures/examples/good/example.json @@ -20,11 +20,11 @@ }, "medload": { "Description": "reflects the number of dosage of psychotropic medications taken by participants. Higher numbers correspond to more medications and/or higher medication dosage ", - "Units": "arbitraty units" + "Units": "arbitrary units" }, "iq": { "Description": "IQ derived based on the NART assessment.", - "Units": "arbitraty units" + "Units": "arbitrary units" }, "stroop": { "Description": "Reaction time in a Stroop task experiment.", diff --git a/cypress/fixtures/examples/interesting/ds001919_participant.tsv b/cypress/fixtures/examples/interesting/ds001919_participant.tsv index 972b5219..0ab1fe04 100644 --- a/cypress/fixtures/examples/interesting/ds001919_participant.tsv +++ b/cypress/fixtures/examples/interesting/ds001919_participant.tsv @@ -105,12 +105,12 @@ sub-mniS06 M 33 2019-03-05 mni "Montreal Neurological Institute, McGill Universi sub-mniS07 F 40 2019-03-07 mni "Montreal Neurological Institute, McGill University" Siemens Prisma-fit 64ch+spine VE11C "Benjamin De Leener, Julien Doyon" sub-mniS08 F 28 2019-03-12 mni "Montreal Neurological Institute, McGill University" Siemens Prisma-fit 64ch+spine VE11C "Benjamin De Leener, Julien Doyon" sub-mniS09 F 42 2019-03-12 mni "Montreal Neurological Institute, McGill University" Siemens Prisma-fit 64ch+spine VE11C "Benjamin De Leener, Julien Doyon" -sub-mountSinai01 M 40 2019-03-12 mountSinai "BMEII (formely TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" -sub-mountSinai02 M 26 2019-03-12 mountSinai "BMEII (formely TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" -sub-mountSinai03 M 37 2019-03-05 mountSinai "BMEII (formely TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" -sub-mountSinai04 M 37 2019-03-25 mountSinai "BMEII (formely TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" -sub-mountSinai05 M 31 2019-03-25 mountSinai "BMEII (formely TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" -sub-mountSinai06 M 31 2019-03-25 mountSinai "BMEII (formely TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" +sub-mountSinai01 M 40 2019-03-12 mountSinai "BMEII (formerly TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" +sub-mountSinai02 M 26 2019-03-12 mountSinai "BMEII (formerly TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" +sub-mountSinai03 M 37 2019-03-05 mountSinai "BMEII (formerly TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" +sub-mountSinai04 M 37 2019-03-25 mountSinai "BMEII (formerly TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" +sub-mountSinai05 M 31 2019-03-25 mountSinai "BMEII (formerly TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" +sub-mountSinai06 M 31 2019-03-25 mountSinai "BMEII (formerly TMII), Icahn School of Medicine at Mount Sinai, New York, NY USA" Siemens Skyra Spine_32 VE11C "J. Xu, A. Seifert, J-W. Kim" sub-mpicbs01 F 29 2019-03-26 mpicbs Max Planck Institute for Human Cognitive and Brain Sciences Siemens Prisma-fit 64ch+spine VE11C "F. Eippert, T. Leutritz, N. Weiskopf" sub-mpicbs02 F 30 2019-04-04 mpicbs Max Planck Institute for Human Cognitive and Brain Sciences Siemens Prisma-fit 64ch+spine VE11C "F. Eippert, T. Leutritz, N. Weiskopf" sub-mpicbs03 M 26 2019-04-04 mpicbs Max Planck Institute for Human Cognitive and Brain Sciences Siemens Prisma-fit 64ch+spine VE11C "F. Eippert, T. Leutritz, N. Weiskopf" diff --git a/cypress/fixtures/examples/interesting/ds002134_participant.json b/cypress/fixtures/examples/interesting/ds002134_participant.json index 95a36bf8..04584f61 100644 --- a/cypress/fixtures/examples/interesting/ds002134_participant.json +++ b/cypress/fixtures/examples/interesting/ds002134_participant.json @@ -29,7 +29,7 @@ "Description": "Animal weight in grams" }, "Temperature": { - "Description": "Animal rectal temperature in Celcius" + "Description": "Animal rectal temperature in Celsius" }, "DOB": { "Description": "Animal date of birth" diff --git a/pages/categorization.vue b/pages/categorization.vue index adbef727..f504cbed 100644 --- a/pages/categorization.vue +++ b/pages/categorization.vue @@ -295,7 +295,7 @@ } } - // b. Save the description from the json file colum entry + // b. Save the description from the json file column entry this.columnToCategoryTable[index].description = descriptionStr; } } diff --git a/pages/download.vue b/pages/download.vue index e7fac22f..69874ce9 100644 --- a/pages/download.vue +++ b/pages/download.vue @@ -121,7 +121,7 @@ downloadAnnotatedData() { - // 1. Format the annotated table into propietary JSON format + // 1. Format the annotated table into proprietary JSON format const jsonData = this.transformAnnotatedTableToJSON(); // 2. Open file dialog to prompt the user to name it and diff --git a/test_contributions.md b/test_contributions.md index 3bd20f09..def793f9 100644 --- a/test_contributions.md +++ b/test_contributions.md @@ -53,7 +53,7 @@ This file contains functions that are linked to the Cypress object. The idea is _assertNextPageAccess_ -Since each page in the annotation tool uses a standard naming convention for the nav and next page buttons, this function is a quick means of determining of the page's requirements for proceeeding to the next one have been met. +Since each page in the annotation tool uses a standard naming convention for the nav and next page buttons, this function is a quick means of determining of the page's requirements for proceeding to the next one have been met. _datasetMeetsTestCriteria_