Feat/dj live stems #29
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
| name: Lint | |
| on: | |
| pull_request: | |
| # 🚨 HARD RULE — RUFF VERSION 🚨 | |
| # Ruff is pinned in BOTH this workflow (RUFF_VERSION below) and in | |
| # pyproject.toml's `dependency-groups.dev` so the CI ruff and the | |
| # local-dev ruff (via `uv sync --group dev`) are always BIT-IDENTICAL. | |
| # NEVER let these drift, NEVER downgrade to an older version, | |
| # NEVER allow two ruff installations to coexist in this repo's | |
| # tooling chain. | |
| # | |
| # Bumping requires changing BOTH places in the same commit, then | |
| # running `uv sync --group dev` + `uv run ruff format .` in that | |
| # same commit so the working tree is consistent against the new | |
| # formatter. Symptoms of a violation: `ruff format --check` reports | |
| # drift on files that were clean at the last commit with no semantic | |
| # edits in between — that's the version-mismatch smoking gun. | |
| # | |
| # See CLAUDE.md → "🚨 HARD RULES" for the canonical version of this rule. | |
| # | |
| # We pin to a specific tagged release of actions/checkout rather than | |
| # the floating `@v4` major-version tag so editor integrations (e.g. the | |
| # VS Code GitHub Actions extension) can resolve the action without | |
| # round-tripping to api.github.com. Ruff is installed via the first- | |
| # party setup-python action + pipx, avoiding the third-party | |
| # astral-sh/ruff-action entirely. | |
| env: | |
| RUFF_VERSION: "0.15.14" # ⚠ KEEP IN SYNC WITH pyproject.toml ⚠ | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install ruff | |
| run: pipx install "ruff==${{ env.RUFF_VERSION }}" | |
| - name: ruff check | |
| run: ruff check . | |
| - name: ruff format --check | |
| run: ruff format --check . |