Skip to content

Commit 0933cb6

Browse files
committed
build: Migrate to prek
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
1 parent eb58a3a commit 0933cb6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
with:
2727
python-version: "3.13"
2828

29-
- run: pip install pre-commit
30-
- run: SKIP=mypy pre-commit run --all-files
29+
- uses: astral-sh/setup-uv@v7
30+
- run: SKIP=mypy uvx prek run --all-files
3131

3232
mypy:
3333
name: Mypy
@@ -41,8 +41,8 @@ jobs:
4141
with:
4242
python-version: "3.13"
4343

44-
- run: pip install pre-commit
45-
- run: pre-commit run mypy --all-files
44+
- uses: astral-sh/setup-uv@v7
45+
- run: uvx prek run mypy --all-files
4646

4747
tests:
4848
strategy:

.github/workflows/update-pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
fetch-depth: 1
2020
submodules: true
2121

22-
- run: pip install pre-commit
23-
- run: pre-commit autoupdate
22+
- uses: astral-sh/setup-uv@v7
23+
- run: uvx prek autoupdate
2424

2525
- name: Open pull request
2626
uses: peter-evans/create-pull-request@v8

0 commit comments

Comments
 (0)