A little bit of a catch 22 you think? C++ has clangfmt. Black has a good momentum right now it very well might be the clear winner in a few months
using black is the no cognitive load in my book.
Science. 88 produced smaller files than 80. And 90 and above didn’t noticeably shorten files. Like Raymond Hettinger said in his talk beyond pep8, 90ish is better than a strict 80. If you have 81 characters on a line…
I find as I write code I no longer worry about alignment or long lines. When I have vim paste a section of code and its at a different indentation I just run black.
yapf is not consistent, you can rerun it on source and it will reformat it multiple times. The rules for how it formats are also hard to understand
A little bit of a catch 22 you think? C++ has clangfmt. Black has a good momentum right now it very well might be the clear winner in a few months
using black is the no cognitive load in my book.
Science. 88 produced smaller files than 80. And 90 and above didn’t noticeably shorten files. Like Raymond Hettinger said in his talk beyond pep8, 90ish is better than a strict 80. If you have 81 characters on a line…
I find as I write code I no longer worry about alignment or long lines. When I have vim paste a section of code and its at a different indentation I just run black.
yapf is not consistent, you can rerun it on source and it will reformat it multiple times. The rules for how it formats are also hard to understand