News for hackers. Stuff that matters.
Re:Pre-commit: framework for managing/maintaining multi-lang... by claytonjy on Tuesday December 21, 2021 @10:04AM (#29638015)
> 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/

There are no comments on this comment yet.