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

I do think there's value in manual formatting some code sections. For example, very large arrays, or alignment of semantic parts of a group of mathematical expressions. Ultimately, I think the only thing that matters is that the code is readable, consistent and you don't spend much time on how it looks.

That said, if you have team members who somehow can't or won't copy the surrounding code style, then automatic linting sounds necessary.



See it like this - in 10 years when here is no original dev working on this, will this project still have the same code style?

With a nice .editorconfig the probability is very high that it's mostly consistent. I can guarantee you any manual rules will be long forgotten and the IDE style will reign supreme - only your old "manual" formatting will stick out like a sore thumb.


here are the rules we enforce inside `pyproject.toml` https://gist.github.com/v3ss0n/3b0a8ac808f6930ea04e4ada62d90...




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

Search: