pymc-examples icon indicating copy to clipboard operation
pymc-examples copied to clipboard

Overzealous black formatting on data lists

Open fonnesbeck opened this issue 3 years ago • 1 comments

Black makes a poor choice in formatting long arrays, for example in the disasters example:

Screen Shot 2021-06-06 at 10 04 55 PM

If there isn't a way of making exceptions for instances like this, the data should be stored externally.

fonnesbeck avatar Jun 07 '21 03:06 fonnesbeck

It is possible to turn formatting off with # fmt: on/off the style guide has an example of this: https://github.com/pymc-devs/pymc3/wiki/PyMC3-Jupyter-Notebook-Style-Guide

OriolAbril avatar Jun 07 '21 09:06 OriolAbril