-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 834 Bytes
/
lint.yml
File metadata and controls
36 lines (28 loc) · 834 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
name: Python Ruff Lint
on: [push]
jobs:
ruff-lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12.1"
- name: Cache uv
uses: actions/cache@v4
with:
path: ~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('backend/uv.lock') }}
- name: Install uv
run: python -m pip install --upgrade pip uv
- name: Install dependencies
working-directory: backend
run: uv sync --dev --frozen
- name: Ruff format check
working-directory: backend
run: uv run ruff format --check .
- name: Ruff lint
working-directory: backend
run: uv run ruff check .