Add codespell linter config and fix spelling errors #2324
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Super-Linter | |
| # Run this workflow every time a new commit pushed to your repository | |
| on: push | |
| permissions: {} | |
| jobs: | |
| super-lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: read | |
| # To report GitHub Actions status checks | |
| statuses: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| # super-linter needs the full git history to get the | |
| # list of files that changed across commits | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Run Super-Linter | |
| uses: super-linter/super-linter/slim@latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Exclude SC1071 (unsupported shell) to skip zsh scripts gracefully | |
| SHELLCHECK_OPTS: "--exclude=SC1071" | |
| # Exclude: elpa (third-party), .venv (virtual env), zsh-specific files | |
| # (shfmt cannot parse zsh-specific syntax) | |
| FILTER_REGEX_EXCLUDE: .*(emacs/.emacs.d/elpa/|\.venv/|mysql-work/\.zsh\.d/rc/mysql-work\.sh|scripts/usr/bin/macupdate|zsh/\.p10k\.zsh).* | |
| VALIDATE_ANSIBLE: false | |
| VALIDATE_GIT_COMMITLINT: false | |
| # Conflicts with black (both are Python formatters) | |
| VALIDATE_PYTHON_PYINK: false | |
| VALIDATE_PYTHON_RUFF_FORMAT: false | |
| # Redundant with PYTHON_RUFF which covers all flake8 rules | |
| VALIDATE_PYTHON_FLAKE8: false | |
| # Until https://github.com/kucherenko/jscpd/issues/737 is fixed | |
| VALIDATE_JSCPD: false |