-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
35 lines (30 loc) · 678 Bytes
/
ruff.yml
File metadata and controls
35 lines (30 loc) · 678 Bytes
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
28
29
30
31
32
33
34
35
name: Run Ruff
on:
push:
branches: [ main, 7.x, 8.x]
pull_request:
branches: [ main, 7.x, 8.x]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.x"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
uv pip install --system ruff
- name: Lint with ruff
run: |
set -e
ruff check .