News for hackers. Stuff that matters.
Re:Black, the uncompromising Python code formatter, is stable by Hnrobert42 on Sunday January 30, 2022 @07:30AM (#30136579)
Is there a way to pass hooks with a repo, or do you have to give people instructions about how to install them and hope they do it?
Re:Black, the uncompromising Python code formatter, is stable by goerz on Sunday January 30, 2022 @10:11AM (#30137831)
Not directly, unfortunately. Sometimes you can hook it into the tooling, like the Makefile or the test runner.

Other than that, enforce it in CI: patches that don’t match the code style can’t be merged