Closed
Description
It seem that something is not working as expected in the latest version
pre-commit version: 3.1.0
git --version: git version 2.41.0
sys.version:
3.10.10 (main, Feb 7 2023, 12:19:31) [GCC 12.2.0]
sys.executable: /nix/store/syz2y6j53y5hpzbs7l0965zwxshi8iyl-python3-3.10.10/bin/python3.10
os.name: posix
sys.platform: linux
error information
An error has occurred: InvalidManifestError:
==> File ~/.cache/pre-commit/repofbad9rxa/.pre-commit-hooks.yaml
==> At Hook(id='forbid-crlf')
==> 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'
Check the log at ~/.cache/pre-commit/pre-commit.log
It seems, that version constraint check is not working as it should, but I am sure it is not related to the hook but to the framework.
Metadata
Metadata
Assignees
Labels
No labels