diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..19a9d8e --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git*,.codespellrc +check-hidden = true +# ignore-regex = +ignore-words-list = vor diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..c59e047 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +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@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/README.md b/README.md index 51525f8..c33708b 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ title = 'Über formal unentscheidbare Sätze der Principia Mathematica und verwa get_citations_from_title(title) ``` -*NOTE*: The scholar endpoint does not require authentification but since it regularly +*NOTE*: The scholar endpoint does not require authentication but since it regularly prompts with captchas, it's difficult to apply large scale. ### Journal impact factor diff --git a/paperscraper/postprocessing.py b/paperscraper/postprocessing.py index f1f0cbd..58e17b8 100644 --- a/paperscraper/postprocessing.py +++ b/paperscraper/postprocessing.py @@ -52,7 +52,7 @@ def aggregate_paper( if not isinstance(bins_per_year, int): raise ValueError(f"Expected int, received {type(bins_per_year)}") if 12 % bins_per_year != 0: - raise ValueError(f"Cant split year into {bins_per_year} bins") + raise ValueError(f"Can't split year into {bins_per_year} bins") num_years = last_year - start_year + 1 bins = np.zeros((num_years * bins_per_year))