Skip to content
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

Pre-commit fails when trying to perform a (local) commit, but succeeds when performed manually #74

Closed
dvdstrzl opened this issue May 3, 2023 · 4 comments

Comments

@dvdstrzl
Copy link
Collaborator

dvdstrzl commented May 3, 2023

Issue with pre-commit (screenshot).

@MaGering @nesnoj
Do you have an idea how to fix this?

Note: 'black' is installed in 'digipipe' env.

grafik

@dvdstrzl dvdstrzl added the bug 🐞 Something isn't working label May 3, 2023
@MaGering
Copy link
Collaborator

MaGering commented May 3, 2023

Hi David,
that is odd. Have not encountered this error yet.

Note: 'black' is installed in 'digipipe' env.

And your digipipe env is also activated while you try to commit?

@dvdstrzl dvdstrzl removed the bug 🐞 Something isn't working label May 3, 2023
@dvdstrzl
Copy link
Collaborator Author

dvdstrzl commented May 3, 2023

Hello Marie,
thanks for the hint. I was also thinking that there might be a problem with the environment configuration.... I have now done the commit via cli inside the active digipipe env and it actually worked! So apparently there is a problem with my git configuration in vs code (development works in the 'digipipe' environment, but not the git operations apparently)

@dvdstrzl dvdstrzl closed this as completed May 3, 2023
@MaGering
Copy link
Collaborator

MaGering commented May 3, 2023

Oh good to know. Glad it works now! :)

@dvdstrzl
Copy link
Collaborator Author

dvdstrzl commented May 3, 2023

Yes, I will just do the commits via cli for now. :)

Seems to be a general and persisting issue with vs code + pre-commit...
microsoft/vscode-python#10165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants