Skip to content

Commit c66c8b0

Browse files
committed
build: switch to prek
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
1 parent e4efb2e commit c66c8b0

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,16 @@ jobs:
2121
- uses: aevea/commitsar@v1.0.2
2222

2323
pre-commit:
24-
name: Generic pre-commit checks
24+
name: Pre-commit checks
2525
runs-on: ubuntu-22.04
2626
steps:
2727
- uses: actions/checkout@v6
2828
with:
2929
fetch-depth: 1
3030

31-
- uses: actions/setup-python@v6
32-
with:
33-
python-version: 3.11
31+
- uses: astral-sh/setup-uv@v6
3432

35-
- run: pip install pre-commit
36-
- run: SKIP=fmt,cargo-check,clippy pre-commit run --all-files
33+
- run: SKIP=fmt,cargo-check,clippy uvx prek run --all-files
3734

3835
eslint:
3936
name: ESLint

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ default_language_version:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v5.0.0
6+
rev: v6.0.0
77
hooks:
88
- id: check-yaml
99
- id: end-of-file-fixer
@@ -30,11 +30,11 @@ repos:
3030
- id: yamllint
3131

3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: v0.12.1
33+
rev: v0.14.10
3434
hooks:
3535
- id: ruff-format
3636

3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.12.1
38+
rev: v0.14.10
3939
hooks:
4040
- id: ruff

0 commit comments

Comments
 (0)