forked from flare-foundation/flare-ai-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 814 Bytes
/
lint.yml
File metadata and controls
40 lines (32 loc) · 814 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
name: Lint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
lint:
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v5
# Set up Python environment
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
# Install dependencies
- name: Install dependencies
run: uv sync --frozen --all-extras
# Format code with ruff
- name: Format with ruff
run: uv run ruff format --diff
# Lint code with ruff
- name: Lint with ruff
run: uv run ruff check --diff
continue-on-error: false
# Type check with pyright
- name: Type check with pyright
run: uv run pyright