Skip to content

LICENSE: CC -> MIT #119

LICENSE: CC -> MIT

LICENSE: CC -> MIT #119

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@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
# Setup pip
python -m pip install --upgrade pip
# Install dependencies including ruff
python -m pip install -e ".[dev]"
- name: Check formatting with ruff
run: |
ruff format . --check
ruff check .