Files
llama-cpp-python/.github/workflows/lint.yaml
Andrei a9b4a06730 misc: Add Ruff formatting (#2148)
* Add Ruff formatting and safe lint baseline

* Update changelog for Ruff setup
2026-03-22 16:12:02 -07:00

30 lines
554 B
YAML

name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Ruff
run: python -m pip install "ruff>=0.15.7"
- name: Lint with Ruff
run: python -m ruff check llama_cpp tests
- name: Check formatting with Ruff
run: python -m ruff format --check llama_cpp tests