Private
Public Access
36 lines
731 B
YAML
36 lines
731 B
YAML
name: Lint
|
|
|
|
# Ruff lint + format checks on Python 3.14, driven by uv. Triggers on every
|
|
# commit reaching main and on PRs.
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: ruff (Python 3.14)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
|
|
with:
|
|
python-version: "3.14"
|
|
|
|
- name: Install dependencies
|
|
run: uv sync
|
|
|
|
- name: Lint
|
|
run: uv run ruff check src tests
|
|
|
|
- name: Format check
|
|
run: uv run ruff format --check src tests
|