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 = 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 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. """