Integrating Black for Python files in Gnome Builder

Hi,
Is there a(n easy) way to integrate Black with Gnome Builder ?
At the moment, I’m just running Black on the files from a shell and reload the modified files in Builder, but is there a smarter way ?
Thanks,
Camille

1 Like

Hi there,

Not super up to date with the python ecosystem these day, but what exactly is Black. Do you have any helpful links?

Cheers

Black is the de facto (maybe even de jure now?) official python formatter

Quite literally cargo fmt but for python

Hi,
Sorry, yes, as @zbrown said, it’s a python code formatter, an " Uncompromising" one, according to their own terms :wink:

Also you can call it any color you like :wink: