-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to install the pre-commit
hook
#544
Comments
There's far from enough details here to help you. Can you share your pre commit config file, or really any details of what you're using beyond version strings |
The default_stages: [commit]
repos:
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
name: Commit message check
language: python
entry: gitlint --msg-filename
stages: [commit-msg] It was a host w/o any cached $ python --version
Python 3.12.2
$ pre-commit --version
pre-commit 3.7.0 |
The solution that helped: $ SETUPTOOLS_SCM_PRETEND_VERSION=0.19.1 git commit … Needed only for the first time, when there is no cloned repo yet maintained by the Definitely, it related to the dynamic version somewhere (I didn't dive into sources much) |
Install log
version information
error information
The text was updated successfully, but these errors were encountered: