-
Notifications
You must be signed in to change notification settings - Fork 49
44 lines (35 loc) · 878 Bytes
/
ruff.yml
File metadata and controls
44 lines (35 loc) · 878 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
36
37
38
39
40
41
42
43
44
name: ruff
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup uv
uses: ./.github/actions/setup-uv
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Run Ruff Linter
run: uv run --with ruff ruff check --output-format=github
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup uv
uses: ./.github/actions/setup-uv
with:
enable-cache: true
- name: Run Ruff Formatter Check
run: uv run --with ruff ruff format --check