From 30388c42b068ae2dc554a41d3e2796f4d308452b Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 21 Nov 2023 12:17:44 -0500 Subject: [PATCH 1/4] Add github action to codespell master 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 0000000000..7373affc38 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,22 @@ +--- +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@v3 + - name: Codespell + uses: codespell-project/actions-codespell@v2 From 0c4235cb96e5ff249eb8984a2378c7dfc298e669 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 21 Nov 2023 12:17:44 -0500 Subject: [PATCH 2/4] 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 0000000000..ebe6e86153 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,5 @@ +[codespell] +skip = .git,*.pdf,*.svg,.codespellrc +check-hidden = true +# ignore-regex = +# ignore-words-list = From d6c66899f38e3878cb921e07488390498a782b39 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 21 Nov 2023 12:18:30 -0500 Subject: [PATCH 3/4] codespell ignore datas --- .codespellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index ebe6e86153..858fdd6786 100644 --- a/.codespellrc +++ b/.codespellrc @@ -2,4 +2,4 @@ skip = .git,*.pdf,*.svg,.codespellrc check-hidden = true # ignore-regex = -# ignore-words-list = +ignore-words-list = datas From af32849d4dfbc40c485f7f45902f1366fb9dbf15 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 21 Nov 2023 12:18:34 -0500 Subject: [PATCH 4/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 ^^^ --- docs/README.md | 4 ++-- extras/profiling/benchmarks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 3b12e98f4c..dd124685c9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2103,7 +2103,7 @@ $ cat session.json ``` ```bash -# Re-use the existing session — the API-Token header will be set: +# Reuse the existing session — the API-Token header will be set: $ http --session=./session.json pie.dev/headers ``` @@ -2410,7 +2410,7 @@ HTTPie offers extensibility through a [plugin API](https://github.com/httpie/cli and there are dozens of plugins available to try! They add things like new authentication methods ([akamai/httpie-edgegrid](https://github.com/akamai/httpie-edgegrid)), transport mechanisms ([httpie/httpie-unixsocket](https://github.com/httpie/httpie-unixsocket)), -message convertors ([banteg/httpie-image](https://github.com/banteg/httpie-image)), or simply +message converters ([banteg/httpie-image](https://github.com/banteg/httpie-image)), or simply change how a response is formatted. > Note: Plugins are usually made by our community members, and thus have no direct relationship with diff --git a/extras/profiling/benchmarks.py b/extras/profiling/benchmarks.py index 9d409debbe..26a3f97853 100644 --- a/extras/profiling/benchmarks.py +++ b/extras/profiling/benchmarks.py @@ -21,7 +21,7 @@ $ python extras/profiling/benchmarks.py --fast # For verify everything works as expected, pass --debug-single-value. - # It will only run everything once, so the resuls are not reliable. But + # It will only run everything once, so the results are not reliable. But # very useful when iterating on a benchmark $ python extras/profiling/benchmarks.py --debug-single-value