Integrating Black for Python files in Gnome Builder

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 ?

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?


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

Quite literally cargo fmt but for python

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:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.