Hacker News new | ask | show | jobs
by bckr 1586 days ago
> Is the point to fail the build if the code wasn't pre-formatted with i.e. Black?

It's this one

> Or is the point to autoformat

This one is done with pre-commit (which should probably be named pre-push?) hooks

> and autocommit the formatted code?

I don't think this one is done, and I think it's undesirable

1 comments

Pre-commit hooks really happen when you type 'git commit'. If you have failing checks in them, your commit will be aborted.