Skip to content

Commit 845ec0c

Browse files
Merge pull request #2402 from VWS-Python/uv-in-precommit
Update pre-commit config
2 parents dc6a412 + 195f9b3 commit 845ec0c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030

3131
- name: "Lint"
3232
run: |
33-
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage commit --verbose
34-
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage push --verbose
33+
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-commit --verbose
34+
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-push --verbose
3535
uv run --all-extras --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage manual --verbose
3636
3737
- name: "Run tests"

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ repos:
9898

9999
- id: mypy
100100
name: mypy
101-
stages: [push]
101+
stages: [pre-push]
102102
entry: uv run --extra=dev -m mypy .
103103
language: python
104104
types_or: [python, toml]
@@ -107,23 +107,23 @@ repos:
107107

108108
- id: mypy-docs
109109
name: mypy-docs
110-
stages: [push]
110+
stages: [pre-push]
111111
entry: uv run --extra=dev doccmd --language=python --command="mypy"
112112
language: python
113113
types_or: [markdown, rst, python, toml]
114114
additional_dependencies: ["uv"]
115115

116116
- id: check-manifest
117117
name: check-manifest
118-
stages: [push]
118+
stages: [pre-push]
119119
entry: uv run --extra=dev -m check_manifest .
120120
language: python
121121
pass_filenames: false
122122
additional_dependencies: ["uv"]
123123

124124
- id: pyright
125125
name: pyright
126-
stages: [push]
126+
stages: [pre-push]
127127
entry: uv run --extra=dev -m pyright .
128128
language: python
129129
types_or: [python, toml]
@@ -132,7 +132,7 @@ repos:
132132

133133
- id: pyright-docs
134134
name: pyright-docs
135-
stages: [push]
135+
stages: [pre-push]
136136
entry: uv run --extra=dev doccmd --language=python --command="pyright"
137137
language: python
138138
types_or: [markdown, rst, python, toml]
@@ -269,7 +269,7 @@ repos:
269269

270270
- id: pyright-verifytypes
271271
name: pyright-verifytypes
272-
stages: [push]
272+
stages: [pre-push]
273273
entry: uv run --extra=dev -m pyright --verifytypes vws
274274
language: python
275275
pass_filenames: false

docs/source/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Run lint tools either by committing, or with:
4040

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

0 commit comments

Comments
 (0)