From da5bc89f27f92b0a3199df7039f74453c741a6d5 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 17 Mar 2023 16:00:11 -0400 Subject: [PATCH 1/8] Add github action to codespell master on push and PRs --- .github/workflows/codespell.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..b026c85 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +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 From f18d7c63917da02e1d8b19239319ebd313a2c5f1 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 17 Mar 2023 16:00:11 -0400 Subject: [PATCH 2/8] 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 ce2a43b658da45f3a5d98175fc87e3d1498f04ba Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 17 Mar 2023 16:02:16 -0400 Subject: [PATCH 3/8] Add some extra ignores --- .codespellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index 5aa4b5e..9e08b9e 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,3 +1,3 @@ [codespell] -skip = .git,*.pdf,*.svg +skip = .git,*.pdf,*.svg,*v2.2.xml # ignore-words-list = From a547aa02bf481c2573abb8b7d2dcbb79261833e7 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 17 Mar 2023 16:02:39 -0400 Subject: [PATCH 4/8] Interactive ambigous fixes --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7399df3..25bfd54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -473,7 +473,7 @@ **Closed issues:** - add more tests [\#25](https://github.com/datacite/schema/issues/25) -- Adressing version issues in the documentation [\#21](https://github.com/datacite/schema/issues/21) +- Addressing version issues in the documentation [\#21](https://github.com/datacite/schema/issues/21) - Update Citation in Documentation [\#20](https://github.com/datacite/schema/issues/20) - integrate testing of non-valid example [\#12](https://github.com/datacite/schema/issues/12) - provide changelog for schema versions [\#9](https://github.com/datacite/schema/issues/9) @@ -522,7 +522,7 @@ **Closed issues:** - make html pages valid [\#24](https://github.com/datacite/schema/issues/24) -- Chage wording in documentation [\#15](https://github.com/datacite/schema/issues/15) +- Change wording in documentation [\#15](https://github.com/datacite/schema/issues/15) ## [v.3.1.12](https://github.com/datacite/schema/tree/v.3.1.12) (2016-01-10) From aff053aee377dabf0c33e188ff9aa8e824481b16 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 1 Nov 2024 14:30:32 -0400 Subject: [PATCH 5/8] Ignore existing releases of schema --- .codespellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index 9e08b9e..ea787c8 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,3 +1,3 @@ [codespell] -skip = .git,*.pdf,*.svg,*v2.2.xml +skip = .git,*.pdf,*.svg,*v2.2.xml,kernel-4.[12345]*,kernel-3* # ignore-words-list = From a276a7caaa5b4e93af0ac006c84c2034a0afc610 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 1 Nov 2024 14:34:26 -0400 Subject: [PATCH 6/8] Ignore a name and non-english xml lines --- .codespellrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.codespellrc b/.codespellrc index ea787c8..1cd2f34 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,3 +1,4 @@ [codespell] skip = .git,*.pdf,*.svg,*v2.2.xml,kernel-4.[12345]*,kernel-3* +ignore-regex = .*xml:lang="(?!en\b)[a-zA-Z]{2}".*|\bSimon Hart\b # ignore-words-list = From 9fa44e2e5d44a1e7486d4e849522b8fad0a6b48b Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 1 Nov 2024 14:40:55 -0400 Subject: [PATCH 7/8] More ignores for historical --- .codespellrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.codespellrc b/.codespellrc index 1cd2f34..66f6509 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,4 +1,4 @@ [codespell] -skip = .git,*.pdf,*.svg,*v2.2.xml,kernel-4.[12345]*,kernel-3* -ignore-regex = .*xml:lang="(?!en\b)[a-zA-Z]{2}".*|\bSimon Hart\b +skip = .git,*.pdf,*.svg,*v2.2.xml,kernel-4.[012345]*,kernel-[123]*,xsd.xsl +ignore-regex = .*xml:lang="(?!en\b)[a-zA-Z]{2}".*|\b(Simon Hart|GAGE)\b # ignore-words-list = From 009d2dda4e5d1b7200afd81533ed2c29231b2d12 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 1 Nov 2024 14:41:28 -0400 Subject: [PATCH 8/8] [DATALAD RUNCMD] run codespell throughout fixing few left typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- .../meta/kernel-4/example/datacite-example-multilingual-v4.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/meta/kernel-4/example/datacite-example-multilingual-v4.xml b/source/meta/kernel-4/example/datacite-example-multilingual-v4.xml index e74472b..e744e7f 100644 --- a/source/meta/kernel-4/example/datacite-example-multilingual-v4.xml +++ b/source/meta/kernel-4/example/datacite-example-multilingual-v4.xml @@ -31,7 +31,7 @@ 2024-01-01 - This chapter reviews selected landmarks ocurred in Chemistry basic research in the last 5 years + This chapter reviews selected landmarks occurred in Chemistry basic research in the last 5 years El capítulo repasa los principales avances en la investigación básica en Ciencias Químicas en los últimos 5 años 本章回顾了过去5年中在化学基础研究中发生的一些里程碑式的事件