You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check-merge-conflict worked until I added this repo for check-git-config-email hook:
✦ ↳ pre-commit
check for merge conflicts................................................Failed
- hook id: check-merge-conflict
- exit code: 1
Traceback (most recent call last):
File "/opt/homebrew/bin/check-merge-conflict", line 5, in <module>
from pre_commit_hooks.check_merge_conflict import main
File "/Users/kyoshiro/dev/git/myrepo/_build/pip_packages/lib/python3.11/site-packages/pre_commit_hooks/check_merge_conflict.py", line 7, in <module>
from pre_commit_hooks.util import cmd_output
ImportError: cannot import name 'cmd_output' from 'pre_commit_hooks.util' (/Users/kyoshiro/dev/git/myrepo/_build/pip_packages/lib/python3.11/site-packages/pre_commit_hooks/util.py)
check yaml...............................................................Passed
fix end of files.........................................................Passed
mixed line ending........................................................Passed
trim trailing whitespace.................................................Passed
Check Git Config Email...................................................Passed
Terraform validate with tflint.......................(no files to check)Skipped
Terraform validate with trivy........................(no files to check)Skipped
prettier.................................................................Passed
Maybe it's my fault in setting up pre-commit-hooks, but I came across a conflict in util.py when using pre-commit-hooks from https://github.com/pre-commit/pre-commit-hooks and this https://github.com/homebysix/pre-commit-macadmin.
check-merge-conflict worked until I added this repo for
check-git-config-email
hook:My pre-commit-config:
It seems, this repo overwrites the
util.py
ofpre-commit-hooks
. But maybe I am wrong in setting things up correctly.To use this repo for
check-git-config-email
I disabledcheck-merge-conflict
to workaround the issue above.The text was updated successfully, but these errors were encountered: