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
I've been trying to set up a commit hook for my python repository to use vscode-black-formatter for black formatting instead of psf/black, but it seems that I am missing something.
[INFO] Initializing environment for https://github.com/microsoft/vscode-black-formatter. An unexpected error has occurred: CalledProcessError: command: ('/usr/lib/git-core/git', 'checkout', '2024.2.0') return code: 1 stdout: (none) stderr: error: pathspec '2024.2.0' did not match any file(s) known to git.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, hope you are well!
I've been trying to set up a commit hook for my python repository to use vscode-black-formatter for black formatting instead of psf/black, but it seems that I am missing something.
So here is the template that I was using:
`
repos:
rev: 2024.2.0
hooks:
`
And it outpus this:
[INFO] Initializing environment for https://github.com/microsoft/vscode-black-formatter. An unexpected error has occurred: CalledProcessError: command: ('/usr/lib/git-core/git', 'checkout', '2024.2.0') return code: 1 stdout: (none) stderr: error: pathspec '2024.2.0' did not match any file(s) known to git
.What am I missing?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions