Skip to content

Commit f664ae6

Browse files
committed
add pre-commit workflow
1 parent b3082ff commit f664ae6

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/pre-commit.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pre-commit
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
pre-commit:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v3
19+
20+
- name: Set up Python from .python-version
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version-file: ".python-version"
24+
25+
- name: Install dependencies
26+
run: uv sync
27+
28+
- name: Run pre-commit
29+
run: uv run pre-commit run --all-files

0 commit comments

Comments
 (0)