Skip to content

Commit 4c22914

Browse files
committed
Fixed the pre-commit config for pre-push as well.
1 parent c8b55f6 commit 4c22914

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ repos:
66
entry: same-version
77
language: system
88
pass_filenames: false
9+
stages: [pre-commit, pre-push]
10+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ repos:
292292
rev: v4.0.0 # Use latest tag
293293
hooks:
294294
- id: same-version
295+
stages: [pre-commit, pre-push]
296+
295297
```
296298

297299
#### Installing the hooks:

example.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ repos:
22
- repo: https://github.com/willynilly/same-version
33
rev: v4.0.0 # Use latest tag
44
hooks:
5-
- id: same-version
5+
- id: same-version
6+
stages: [pre-commit, pre-push]

0 commit comments

Comments
 (0)