Alfred Workflow that applies python black code style to the current selection.
- black
- Alfred w/ Powerpack
- Select any python code
- Run blackit through alfred or hit your custom command (e. g. Cmd + Alt + Ctrl + B)
- The selected code will be transformed into black and pasted back over the current selection.
For your convenience: