From a7f05a73291c938624f2b6ef00bcf6402165c7b8 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 13 Apr 2023 13:33:42 -0400 Subject: [PATCH 1/4] 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 0000000..5768d7c --- /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 1c1fd8f74fa198c71a3cb20d05ceaec7cb44b55a Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 13 Apr 2023 13:33:42 -0400 Subject: [PATCH 2/4] Add rudimentary .codespellrc --- .codespellrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..5aa4b5e --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +skip = .git,*.pdf,*.svg +# ignore-words-list = From 2572c93404474a7672520ebaeb004c1ef4b9ee18 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 13 Apr 2023 13:34:11 -0400 Subject: [PATCH 3/4] Some custom ignores --- .codespellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index 5aa4b5e..ee1225c 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,3 +1,3 @@ [codespell] -skip = .git,*.pdf,*.svg +skip = .git,*.pdf,*.svg,*.css,*.min.js # ignore-words-list = From 9c8216239f379516c009945a80a38167cd3c3dd4 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 13 Apr 2023 13:34:12 -0400 Subject: [PATCH 4/4] [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 ^^^ --- docs/js/bootstrap-table.js | 4 ++-- docs/pages/generate.md | 2 +- tests/test_library.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/js/bootstrap-table.js b/docs/js/bootstrap-table.js index e732a59..8cd62da 100644 --- a/docs/js/bootstrap-table.js +++ b/docs/js/bootstrap-table.js @@ -965,7 +965,7 @@ html.push(''); - // Fix #188: this.showToolbar is for extentions + // Fix #188: this.showToolbar is for extensions if (this.showToolbar || html.length > 2) { this.$toolbar.append(html.join('')); } @@ -1076,7 +1076,7 @@ column = that.columns[getFieldIndex(that.columns, key)], j = $.inArray(key, that.header.fields); - // Fix #142: search use formated data + // Fix #142: search use formatted data value = calculateObjectValue(column, that.header.formatters[j], [value, item, i], value); diff --git a/docs/pages/generate.md b/docs/pages/generate.md index f0206c2..3990c29 100644 --- a/docs/pages/generate.md +++ b/docs/pages/generate.md @@ -1,6 +1,6 @@ --- layout: editor -boostrap: docker +bootstrap: docker from: ubuntu:16.04 title: {{ site.name }} permalink: /generate diff --git a/tests/test_library.py b/tests/test_library.py index 64cf4de..dc1432f 100644 --- a/tests/test_library.py +++ b/tests/test_library.py @@ -1,6 +1,6 @@ ''' -test.py: Python testing to ensure correct formatting and varibles included for +test.py: Python testing to ensure correct formatting and variables included for metadata in experiments. Copyright (c) 2017, Vanessa Sochat