3 ms·
Interesting that they use auto-formatting for Python using the Black tool, is this common elsewhere? https://chromium.googlesource.com/chromiumos/docs/+/HEAD/s
by fulafel 3y ago
Interesting that they use auto-formatting for Python using the Black tool, is this common elsewhere?
https://chromium.googlesource.com/chromiumos/docs/+/HEAD/styleguide/python.md#Auto_formatting-Python https://chromium.googlesource.com/chromiumos/docs/+/HEAD/sty...
- constantcrying 3y agoclang has tooling for this and includes a google specific style. Of course rust has a built in one, so yes.
- rjh29 3y agoI guess it's interesting that they're using Black over their own code formatter (YAPF) but since it's an open source project maybe that's fine? If you were asking about Black specifically, it's very popular: > The following notable open-source projects trust Black with enforcing a consistent code style: pytest, tox, Pyramid, Django, Django Channels, Hypothesis, attrs, SQLAlchemy, Poetry, PyPA applications (Warehouse, Bandersnatch, Pipenv, virtualenv), pandas, Pillow, Twisted, LocalStack, every Datadog Agent Integration, Home Assistant, Zulip, Kedro, OpenOA, FLORIS, ORBIT, WOMBAT, and many more. > The following organizations use Black: Facebook, Dropbox, KeepTruckin, Mozilla, Quora, Duolingo, QuantumBlack, Tesla, Archer Aviation.