Files
cs249r_book/.github/workflows/codespell.yml
T
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
f2573908ee ci(deps): bump actions/checkout from 4 to 6 (#1664)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-04 07:39:39 -04:00

46 lines
1.5 KiB
YAML

# Codespell configuration is the [tool.codespell] block in pyproject.toml.
# Single source of truth — do not duplicate skip lists or ignore words here.
---
name: Codespell
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
permissions:
contents: read
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
# We install codespell directly (rather than using the GitHub Action
# codespell-project/actions-codespell) because the action does not read
# pyproject.toml. Running the CLI with --toml lets [tool.codespell] in
# pyproject.toml stay the single source of truth for skip patterns and
# ignore words. tomli is needed on Python <3.11 only, but harmless here.
- name: Install codespell
run: pip install "codespell>=2.3" tomli
# Scan only git-tracked files. This way local build outputs (Quarto
# _build/, Next.js .next/out/, LaTeX paper.log/bbl, etc.) never produce
# phantom failures on contributor machines, and the CI scan stays
# restricted to source under version control. The skip list in
# pyproject.toml still applies (e.g. PDFs, vendored bundles).
- name: Run codespell on tracked files
shell: bash
run: |
git ls-files -z | xargs -0 codespell --toml pyproject.toml