Merge branch 'main' into dependabot/uv/pre-commit-4.6.2 #1179
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: "Formatting" | |
| on: [push] | |
| jobs: | |
| check: | |
| # matrix.tool values are kept as "black"/"isort" (rather than renamed to "ruff") to preserve | |
| # the required status check names "check (black)"/"check (isort)"; only the command run | |
| # underneath has actually changed to ruff. Renaming these requires updating the | |
| # branch-protection required-check list in the same change. | |
| name: "check (${{ matrix.tool }})" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - tool: black | |
| command: "ruff format --check ." | |
| - tool: isort | |
| command: "ruff check --select I ." | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v10.0.1 | |
| with: | |
| python-version: "3.14" | |
| - name: Install dependencies | |
| run: uv sync --group lint | |
| - name: ${{ matrix.tool }} Code Formatter | |
| run: uv run --group lint ${{ matrix.command }} |