Add code spellcheck CI job (#3467)
### Description Fix spelling mistakes and create codespell CI job. An extension of #3422 with the remaining mistakes fixed ### Backward compatibility Yes --------- Co-authored-by: miles <66052478+miles-six@users.noreply.github.com> Co-authored-by: Paul Balaji <paul@hyperlane.xyz>pull/3488/head
parent
7913d7224e
commit
adab1bec0c
@ -0,0 +1,5 @@ |
||||
[codespell] |
||||
skip = .git,node_modules,yarn.lock,Cargo.lock,./typescript/helloworld |
||||
count = |
||||
quiet-level = 3 |
||||
ignore-words = ./.codespell/ignore.txt |
@ -0,0 +1,7 @@ |
||||
crate |
||||
receipient |
||||
received |
||||
receivedFrom |
||||
ser |
||||
readded |
||||
re-use |
@ -0,0 +1 @@ |
||||
codespell==2.2.6 |
@ -0,0 +1,35 @@ |
||||
# A Github action that using codespell to check spelling. |
||||
# see .codespell/* for configs |
||||
# https://github.com/codespell-project/codespell |
||||
|
||||
name: codespell |
||||
|
||||
on: |
||||
# Triggers the workflow on push or pull request against main |
||||
push: |
||||
branches: [main] |
||||
pull_request: |
||||
branches: [main] |
||||
# Allows you to run this workflow manually from the Actions tab |
||||
workflow_dispatch: |
||||
|
||||
jobs: |
||||
codespell: |
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- name: Checkout the repository |
||||
uses: actions/checkout@v4 |
||||
|
||||
- name: pip cache |
||||
uses: actions/cache@v4 |
||||
with: |
||||
path: ~/.cache/pip |
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} |
||||
restore-keys: ${{ runner.os }}-pip- |
||||
|
||||
- name: Install prerequisites |
||||
run: sudo pip install -r ./.codespell/requirements.txt |
||||
|
||||
- name: Spell check |
||||
run: codespell --config=./.codespell/.codespellrc |
Loading…
Reference in new issue