News for hackers. Stuff that matters.
Re:Format Python Code Using YAPF by 4140tm on Sunday February 09, 2020 @07:22AM (#22281757)
I have hated every single formatter I've tried, other than Black. It seems to be the only one that's not just trying to put style into PEP8 compliance, but also keep it readable and maintainable.

I'm also curious about the issues you've had with it.

Re:Format Python Code Using YAPF by jp_sc on Sunday February 09, 2020 @07:38AM (#22281802)
The outout of Black is PEP8 compliant, just not what flake8 think PEP8 mandates.
Re:Format Python Code Using YAPF by 4140tm on Sunday February 09, 2020 @07:42AM (#22281809)
Weird. I also use flake8 and the only mismatch between the two has been the default line length of black, which I changed to 79. All is good now.
Re:Format Python Code Using YAPF by ForHackernews on Sunday February 09, 2020 @07:56AM (#22281866)
I hate black so much. I know it's somewhat irrational, but it's incredibly ugly and violates established usage in most Python projects.
Re:Format Python Code Using YAPF by weberc2 on Sunday February 09, 2020 @09:21AM (#22282216)
Any formatter will violate established usage in most Python projects. I find black at least makes your code readable, compared with pprint-esque styles.