Live data from Hacker News

Black – Uncompromising Python code formatter

github.com

1–10 of 251 posts

Re: Black – Uncompromising Python code formatter

#3
I've been using this for a couple of weeks and its a been really nice to remove the constant mental overhead of structuring code. it also makes you think about structuring functional blocks into more manageable, bite-sized chunks which is easier to understand. 10/10 would recommend

Re: Black – Uncompromising Python code formatter

#10
How do you enforce the use of a formatter in a project -- pre-commit hook? pre-receive hook? both? And is there a convention to put a specific dotfile at the project root to hint at your IDE/editor that it should use a certain tool for automatic formatting?
Post reply on HN