From 19030bfa1ea1386919eb955112fb44a7129a4419 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 5 Dec 2023 10:05:37 -0500 Subject: [PATCH 1/3] Add github action to codespell main on push and PRs --- .github/workflows/codespell.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..3ebbf55 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,22 @@ +--- +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@v3 + - name: Codespell + uses: codespell-project/actions-codespell@v2 From bb3adf04a9b954e4d97e4a9bcebb1458159e61b6 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 5 Dec 2023 10:05:37 -0500 Subject: [PATCH 2/3] Add rudimentary codespell config --- .codespellrc | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..ebe6e86 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,5 @@ +[codespell] +skip = .git,*.pdf,*.svg,.codespellrc +check-hidden = true +# ignore-regex = +# ignore-words-list = From ebc28c50ce94b769883b927fbd2aa70253ce801c Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 5 Dec 2023 10:05:40 -0500 Subject: [PATCH 3/3] [DATALAD RUNCMD] run codespell throughout fixing typo automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- queries.py | 2 +- status2tabby.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/queries.py b/queries.py index aa1b8b1..f4f7617 100644 --- a/queries.py +++ b/queries.py @@ -110,7 +110,7 @@ def query_crossref(doi, session, email="m.szczepanik@fz-juelich.de"): author["identifiers"] = [ {"name": "ORCID", "identifier": orcid}, ] - # TODO: e-mail is required in the catalog shema dshgafhfadasfhdsgjfgasdjfgasdj!!! + # TODO: e-mail is required in the catalog schema dshgafhfadasfhdsgjfgasdjfgasdj!!! authors.append(author) pub["authors"] = authors diff --git a/status2tabby.py b/status2tabby.py index 86f884d..1f1a16a 100644 --- a/status2tabby.py +++ b/status2tabby.py @@ -8,7 +8,7 @@ def transform_result(res): """Transform status result to get required information - Transformed result contais relative path, size in bytes, and + Transformed result contains relative path, size in bytes, and optionally md5sum. Keys match the sfb1451 tabby specification. """