Skip to content
Advertisement

Tag: code-formatting

Black formatter – Ignore specific multi-line code

I would like to ignore a specific multi-line code by black python formatter. Particularly, this is used for np.array or matrix construction which turned ugly when formatted. Below is the example. I found this issue in black github, but that only works for inline command, which is not what I have here. Is there anything I can do to achieve

Advertisement