File size: 723 Bytes
4b0794d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
name: Ruff Style Check

on:
  pull_request:
    types: [opened, synchronize, reopened, auto_merge_enabled]
    paths:
      - "**/*.py"





jobs:
  lint:
    name: Ruff Style Check
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version:
          - "3.12"
    steps:
      - name: Check out the code at a specific ref
        uses: actions/checkout@v4
      - name: "Setup Environment"
        uses: ./.github/actions/setup-uv
      - name: Register problem matcher
        run: echo "::add-matcher::.github/workflows/matchers/ruff.json"
      - name: Run Ruff Check
        run: uv run --only-dev ruff check --output-format=github .
      - name: Minimize uv cache
        run: uv cache prune --ci