From ec9a9427a0d0e8edde791beca4cc0bbbf82c422d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 31 Oct 2023 18:29:49 -0400 Subject: [PATCH 1/4] 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 0f8cabf412b663a65a0c29c19dc2e7c56e00d610 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 31 Oct 2023 18:29:49 -0400 Subject: [PATCH 2/4] Add rudimentary codespell config --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b5cdd8d..637b6f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,3 +12,8 @@ profile = "black" multi_line_output = 3 include_trailing_comma = true reverse_relative = true + +[tool.codespell] +skip = '.git,*.pdf,*.svg' +# +# ignore-words-list = '' From a968574f185d39927749a7e4d09108c00e94f9e8 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 31 Oct 2023 18:29:54 -0400 Subject: [PATCH 3/4] [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 ^^^ --- src/pystow/cache.py | 2 +- src/pystow/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pystow/cache.py b/src/pystow/cache.py index 04bff89..29ee7eb 100644 --- a/src/pystow/cache.py +++ b/src/pystow/cache.py @@ -31,7 +31,7 @@ import pandas as pd __all__ = [ - # Classses + # Classes "Cached", "CachedPickle", "CachedJSON", diff --git a/src/pystow/utils.py b/src/pystow/utils.py index dff1809..66e1c93 100644 --- a/src/pystow/utils.py +++ b/src/pystow/utils.py @@ -369,7 +369,7 @@ def download( url, path, ) - # Solution for progres bar from https://stackoverflow.com/a/63831344/5775947 + # Solution for progress bar from https://stackoverflow.com/a/63831344/5775947 total_size = int(response.headers.get("Content-Length", 0)) # Decompress if needed response.raw.read = partial(response.raw.read, decode_content=True) From 439846032df06346a1aa48cbcbe982d12f59a6bd Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Fri, 15 Nov 2024 13:51:13 +0100 Subject: [PATCH 4/4] Remove codespell config --- .github/workflows/codespell.yml | 22 ---------------------- pyproject.toml | 5 ----- 2 files changed, 27 deletions(-) delete mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index 3ebbf55..0000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -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/pyproject.toml b/pyproject.toml index a41fbe6..8f9416f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,8 +12,3 @@ profile = "black" multi_line_output = 3 include_trailing_comma = true reverse_relative = true - -[tool.codespell] -skip = '.git,*.pdf,*.svg' -# -# ignore-words-list = ''