Skip to content

chore(ci): add Ruff linting workflow #9

chore(ci): add Ruff linting workflow

chore(ci): add Ruff linting workflow #9

Workflow file for this run

name: Ruff
on:
pull_request:
branches: [ "main" ]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@61a6322f88396a627e76f11833149c3319852a3b # v6.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies with uv
run: uv sync
- name: Run Ruff linter
run: |
uv run ruff check --output-format=github .
- name: Run Ruff formatter
run: |
uv run ruff format --diff .