Files
prime-rl/.github/workflows/style.yaml
T
bd78508566 Pin Ruff in pre-commit + add Ruff format to CI (#1633)
* bump ruff version & move to ruff-check

* add ruff format to CI

* run ruff format

* fix ruff

---------

Co-authored-by: sami jaghouar <sami@primeintellect.ai>
2026-01-23 20:59:43 -08:00

31 lines
702 B
YAML

name: Style
on:
push:
branches:
- main
- refactor
pull_request:
# This will trigger the workflow for pull requests to any branch
types: [opened, synchronize, reopened]
jobs:
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run ruff
uses: astral-sh/ruff-action@v3
with:
version: "0.13.0"
args: "check --config=pyproject.toml"
- name: Run ruff format (check)
uses: astral-sh/ruff-action@v3
with:
version: "0.13.0"
args: "format --check --config=pyproject.toml"