News for hackers. Stuff that matters.
Re:Format Python Code Using YAPF by aequitas on Sunday February 09, 2020 @05:11AM (#22281354)
It doesn't really matter which standard you use imho, as long as you automate the tedious task of code formatting to arbitrary standards. If it's something the computer can do let it do it don't waste your time on it. This goes especially in pull requests where dedicated focus to trivial things like formatting often distracts from the real things that need review, like code architecture.
Re:Format Python Code Using YAPF by weberc2 on Sunday February 09, 2020 @09:25AM (#22282231)
It would be nice if things converted on a single standard, however.
Re:Format Python Code Using YAPF by aequitas on Sunday February 09, 2020 @11:21AM (#22282799)
True, but the order of things will never allow this to happen, either the old standard lags behind, some people disagree on something (just look at the tabs vs spaces discussion) or some people just have inherently different personal preferences. Then there is always the eb and flow of of convergence and deviation. Thats why I've given up on pushing my preferred standard in a team and just enforce the rule that is must be automated so I don't have to spend time on it no matter which way the current standard wind blows.