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

That would only make it more likely that two developers would be using two different versions of Black.

The further you get away from the project folder the more likely each developer is to have a different environment.



Just put a versioned black into pre-commit yaml and put that in your source and forget about it


So now we have one more (useless) build requirement for developers?


pre-commit is very useful, in my opinion. When organising code from a lot of Python developers at least, getting the boring stuff like formatting, import ordering, linting, mypy etc. sorted is a time saver.


Do you know how slow all of that is? Do you want to run all of that per every commit? The result would be people making a monocommit rather than incremental commits that is easy to review one by one.


I do like pre-commit for enforcing linted and typed code but the speed (or lack thereof) does hurt.


Yes, so fast that it makes no difference at all to me. How slow do you think black is?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: