Add codespell. This identified a number of typos (#824)

* Add codespell. This identified a number of typos

* Update codespell.yml

Ignore docs/src/data/english-words.txt
This commit is contained in:
Jauder Ho 2022-01-03 17:44:24 -08:00 committed by GitHub
parent 587eece378
commit 0c3b61cfea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

0
.codespellignore Normal file
View file

35
.github/workflows/codespell.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Codespell
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
# Start the job on all push #
on:
push:
pull_request:
workflow_dispatch:
# Set the Job #
jobs:
build:
name: Codespell
# Set the agent to run on
runs-on: ubuntu-latest
# Load all steps #
steps:
# Checkout the code base #
- name: Checkout Code
uses: actions/checkout@v2.4.0
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# Run Linter against code base #
- name: Codespell
uses: codespell-project/actions-codespell@master
with:
check_filenames: true
ignore_words_file: .codespellignore
exclude_file: docs/src/data/english-words.txt