Skip to content

Commit 60e0fb6

Browse files
author
Astound
committed
fix(hooks): replace invalid 'stages' values with valid schema-compliant ones
Replaced 'pre-commit' and 'pre-push' stage values with valid 'commit' and 'push' as per pre-commit's schema specification. his resolves validation errors and ensures compatibility with recent versions.
1 parent ec458dc commit 60e0fb6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.pre-commit-hooks.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
description: prevents giant files from being committed.
44
entry: check-added-large-files
55
language: python
6-
stages: [pre-commit, pre-push, manual]
6+
stages: [commit, push, manual]
77
minimum_pre_commit_version: 3.2.0
88
- id: check-ast
99
name: check python ast
@@ -40,7 +40,7 @@
4040
entry: check-executables-have-shebangs
4141
language: python
4242
types: [text, executable]
43-
stages: [pre-commit, pre-push, manual]
43+
stages: [commit, push, manual]
4444
minimum_pre_commit_version: 3.2.0
4545
- id: check-illegal-windows-names
4646
name: check illegal windows names
@@ -59,7 +59,7 @@
5959
entry: check-shebang-scripts-are-executable
6060
language: python
6161
types: [text]
62-
stages: [pre-commit, pre-push, manual]
62+
stages: [commit, push, manual]
6363
minimum_pre_commit_version: 3.2.0
6464
- id: pretty-format-json
6565
name: pretty format json
@@ -115,7 +115,7 @@
115115
entry: destroyed-symlinks
116116
language: python
117117
types: [file]
118-
stages: [pre-commit, pre-push, manual]
118+
stages: [commit, push, manual]
119119
- id: detect-aws-credentials
120120
name: detect aws credentials
121121
description: detects *your* aws credentials from the aws cli credentials file.
@@ -140,7 +140,7 @@
140140
entry: end-of-file-fixer
141141
language: python
142142
types: [text]
143-
stages: [pre-commit, pre-push, manual]
143+
stages: [commit, push, manual]
144144
minimum_pre_commit_version: 3.2.0
145145
- id: file-contents-sorter
146146
name: file contents sorter
@@ -208,5 +208,5 @@
208208
entry: trailing-whitespace-fixer
209209
language: python
210210
types: [text]
211-
stages: [pre-commit, pre-push, manual]
211+
stages: [commit, push, manual]
212212
minimum_pre_commit_version: 3.2.0

0 commit comments

Comments
 (0)