Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: