name: codespell
on: pull_request
permissions:
  contents: read

jobs:
    codespell:
        name: Check for spelling errors
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v4
        - uses: codespell-project/actions-codespell@master
          with:
            check_filenames: true
            check_hidden: true
            skip: ./.git,*.png,*.csv,./archive,./legacy_submissions
            ignore_words_file: './.codespellignore'