Dep/caaml-parser-update #184
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: Make sure code is ruff-formatted 🐶 | |
| "on": | |
| # Run format checks on pull_request events | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| # Allow this workflow to be called by other workflows | |
| workflow_call: | |
| # Allow this workflow to be called manually (e.g. from the GitHub Actions UI) | |
| workflow_dispatch: | |
| jobs: | |
| format: | |
| name: Make sure code is ruff-formatted 🐶 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: uv sync --extra dev | |
| - name: Check formatting with ruff | |
| run: | | |
| uv run ruff format . --check | |
| uv run ruff check . |