Skip to content

Dep/caaml-parser-update #186

Dep/caaml-parser-update

Dep/caaml-parser-update #186

Workflow file for this run

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 .