-
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (22 loc) · 640 Bytes
/
pre-commit.yml
File metadata and controls
29 lines (22 loc) · 640 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
name: Lint with Pre-commit
on:
pull_request:
branches: [master, main]
jobs:
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run pre-commit (all files on push, only changes on PR)
run: uv run pre-commit run --all-files --show-diff-on-failure --color always