Skip to content

Commit 25334bc

Browse files
follow stage rename in pre-commit config (#775)
the possible value for `default_stages` is now called "pre-commit", according to https://pre-commit.com/#pre-commit-configyaml---top-level and the warning put out by `pre-commit==4.1.0` when using legacy "commit": ```bash $ pre-commit run [WARNING] top-level `default_stages` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. ```
1 parent ac63d7c commit 25334bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default_language_version:
66
python: python3
77

88
# Optionally both commit and push
9-
default_stages: [commit]
9+
default_stages: [pre-commit]
1010

1111
repos:
1212
- repo: https://github.com/pre-commit/pre-commit-hooks

0 commit comments

Comments
 (0)