3 ms·
> So now I have two different black calls: in the pre-commit hook and in the CI/CD. And they must be of the same version. > Can the framework run off the venv
by claytonjy 5y ago
> So now I have two different black calls: in the pre-commit hook and in the CI/CD. And they must be of the same version.
> Can the framework run off the venv dir?
It can, but it means not using the hooks from the tool's repo and writing your own. This blog post [0] shows the pipenv version of some common hooks; mine look the same but s/pipenv/poetry.
If there's a way to use the upstream hooks with your local venv, so I can trust the tool maintainers for proper configuration, I'd love to know about it.
[0] https://sourcery.ai/blog/python-best-practices/ https://sourcery.ai/blog/python-best-practices/