Skip to content

Commit cee995d

Browse files
Merge pull request #2774 from VWS-Python/prek
Switch from pre-commit to prek
2 parents 48729a8 + 833c51f commit cee995d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535

3636
- name: Lint
3737
run: |
38-
uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose
39-
uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose
40-
uv run --extra=dev pre-commit run --all-files --hook-stage manual --verbose
38+
uv run --extra=dev prek run --all-files --hook-stage pre-commit --verbose
39+
uv run --extra=dev prek run --all-files --hook-stage pre-push --verbose
40+
uv run --extra=dev prek run --all-files --hook-stage manual --verbose
4141
env:
4242
UV_PYTHON: ${{ matrix.python-version }}
4343

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ci:
4444
- pyrefly
4545
- pyrefly-docs
4646

47-
default_install_hook_types: [pre-commit, pre-push, commit-msg]
47+
default_install_hook_types: [pre-commit, pre-push]
4848

4949
repos:
5050
- repo: meta

docs/source/contributing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ and on Ubuntu with ``apt``:
2727
2828
$ apt-get install -y enchant
2929
30-
Install ``pre-commit`` hooks:
30+
Install ``prek`` hooks:
3131

3232
.. code-block:: console
3333
34-
$ pre-commit install
34+
$ prek install
3535
3636
Linting
3737
-------
@@ -40,9 +40,9 @@ Run lint tools either by committing, or with:
4040

4141
.. code-block:: console
4242
43-
$ pre-commit run --all-files --hook-stage pre-commit --verbose
44-
$ pre-commit run --all-files --hook-stage pre-push --verbose
45-
$ pre-commit run --all-files --hook-stage manual --verbose
43+
$ prek run --all-files --hook-stage pre-commit --verbose
44+
$ prek run --all-files --hook-stage pre-push --verbose
45+
$ prek run --all-files --hook-stage manual --verbose
4646
4747
.. _Homebrew: https://brew.sh
4848

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ optional-dependencies.dev = [
4848
"interrogate==1.7.0",
4949
"mypy[faster-cache]==1.19.1",
5050
"mypy-strict-kwargs==2025.4.3",
51-
"pre-commit==4.5.1",
51+
"prek==0.2.25",
5252
"pydocstyle==6.3",
5353
"pygments==2.19.2",
5454
"pylint[spelling]==4.0.4",

0 commit comments

Comments
 (0)