2 ms·
We used YAPF[0] before we used Black[1] I really liked it, a lot. What set Black above is it is most of the decisions (if not all, really) makes is how we setu
by no_wizard 7y ago
We used YAPF[0] before we used Black[1]
I really liked it, a lot. What set Black above is it is most of the decisions (if not all, really) makes is how we setup YAPF anyway. I do think it does some small things better, like reformatting function arguments in certain cases (as is highlighted elsewhere in this thread)
If you need configurability, YAPF is the best choice, in my opinion. We still use isort though, because it sorts imports in a much more readable way.
I just wish I could find a suitable replacement for C# development. StyleCop is okay, but I find we have to use `<NoWarn></NoWarn>` .csproj settings on so many little rules and it doesn't auto format (in as so far as I can tell). If your editor supports it, it will use it as a formatting source of truth, though. I just want something that also has a runnable console binary we can use in CI. Maybe I haven't looked at it closely enough.
[0]https://github.com/google/yapf https://github.com/google/yapf
[1]https://black.readthedocs.io/en/stable/ https://black.readthedocs.io/en/stable/