Skip to content

Commit

Permalink
Create spellcheck.yml
Browse files Browse the repository at this point in the history
new linter: spell checking. at present only applied to `main` branch
  • Loading branch information
pdwaggoner authored Oct 7, 2024
1 parent 31a84df commit 8a4ae47
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Spell Check

on:
push:
branches:
- main
pull_request:

jobs:
spellcheck:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install codespell
run: |
sudo apt-get install -y codespell
- name: Run spell checker
run: |
# Ignore common programming words like "function", "init", etc.
codespell --ignore-words-list "function,init,def,ndarray,PyPI,env" .

0 comments on commit 8a4ae47

Please sign in to comment.