1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| name: "Ruff"
|
| on:
| workflow_call:
| inputs:
| head_sha:
| required: true
| type: string
|
| jobs:
| ruff:
| name: Ruff
| runs-on: ubuntu-latest
| steps:
| - name: Checkout
| uses: actions/checkout@v6
| with:
| ref: ${{ inputs.head_sha }}
|
| - name: Set up Python
| uses: actions/setup-python@v6
| with:
| python-version: '3.13'
|
| - uses: pre-commit/action@v3.0.1
| with:
| extra_args: ruff --all-files --hook-stage pre-push
|
|