Skip to content

Commit decad4c

Browse files
committed
Set up pre-commit hooks to run on push
1 parent 4859a82 commit decad4c

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
pre-commit:
6+
name: Run pre-commit hooks
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v6
10+
- uses: astral-sh/setup-uv@v7
11+
- uses: actions/setup-python@v6
12+
with:
13+
python-version-file: pyproject.toml
14+
15+
- name: Install the project
16+
run: uv sync --locked --dev
17+
18+
- name: Run pre-commit hooks
19+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd

0 commit comments

Comments
 (0)