InvalidManifestError with v6.0.0: stage name 'pre-commit' not recognized
**Description**
Version v6.0.0 fails with `InvalidManifestError` when using pre-commit >= 3.2.0 due to deprecated stage names.
**Error**
InvalidManifestError: ==> At Hook(id='check-added-large-files')==> At key: stages==> At index 0=====> Expected one of commit, commit-msg, manual, merge-commit, post-checkout, post-commit, post-merge, post-rewrite, prepare-commit-msg, push but got: 'pre-commit'
**Environment**
pre-commit version: 3.8.0
pre-commit-hooks version: v6.0.0 or v5.0.0
Python version: 3.12
**Reproduction**
repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: check-added-large-files
Run: pre-commit run --all-files
**Workaround**
Downgrade to `v4.6.0` which work correctly.
**Expected**
Should probably use new stage names (commit, push, etc.) instead of deprecated names (pre-commit, pre-push, etc.) as per pre-commit 3.2.0+ requirements.
0 条评论