Multiple bug fixes #26
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: "Black – code-style check" | |
| on: | |
| pull_request: | |
| paths: ["**/*.py"] | |
| push: | |
| branches: [main] | |
| paths: ["**/*.py"] | |
| jobs: | |
| black: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # ---------- pip wheel cache ---------- | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-black-pip-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-black-pip- | |
| # ---------- Black cache (formatting state) ---------- | |
| - name: Cache Black .cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .cache/black | |
| key: ${{ runner.os }}-black-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-black- | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Black (pinned) | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install black==24.10.0 | |
| - name: Run Black in check mode | |
| run: black --check --diff src |