Add line length check #224
Workflow file for this run
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
| # Copyright (c) Sebastian Raschka under Apache License 2.0 (see LICENSE.txt) | |
| # Source for "Build a Reasoning Model (From Scratch)": https://mng.bz/lZ5B | |
| # Code repository: https://github.com/rasbt/reasoning-from-scratch | |
| name: Spell Check | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| spellcheck: | |
| runs-on: ubuntu-latest | |
| env: | |
| SKIP_EXPENSIVE: "1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install codespell | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| uv sync --dev --python=3.10 | |
| uv add codespell | |
| - name: Run codespell | |
| run: | | |
| source .venv/bin/activate | |
| codespell -L "ocassion,occassion,ot,te,tje" **/*.{txt,md,py,ipynb} |