News for hackers. Stuff that matters.
Re:Pre-commit: framework for managing/maintaining multi-lang... by Nextgrid on Tuesday December 21, 2021 @06:09AM (#29636217)
My strategy is to put pre-commit in the dev requirements (which includes test-specific packages that would be irrelevant for production) and then CI can run the same hooks that pre-commit runs locally.

The objective is that ultimately no non-compliant code can be merged to master; the pre-commit hook (along with all other tests or whatever your CI enforces) is a mandatory step before a PR can be merged, and nobody is allowed to push to master directly.

There are no comments on this comment yet.