Skip to content

Docker Dev env + git + pre-commit #3749

Answered by wolflu05
Bbillyben asked this question in Q&A
Discussion options

You must be logged in to vote

You get this error outside of the docker container where Python and everything is installed. While you did the setup dev thing, you installed the git hook pre commit, which expects to be run in an virtual env which lives in the container. But as you are outside of the container, you have not activated this venv (you even don't have python there, which is totally fine). For fixing this, you can commit with the --no-verify flag outside of the container, or exec into it, and run the commit there. As you already run the tests, you don't have to worry, that the precomit will find something.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Bbillyben
Comment options

@wolflu05
Comment options

wolflu05 Oct 6, 2022
Collaborator

@Bbillyben
Comment options

Answer selected by Bbillyben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants