/blackd

Black Python formatter in Docker.

Primary LanguageDockerfile

Blackd build

Run Black Python formatter in Docker.

This image is available on Dockerhub.

Usage

Here is a short article I wrote about setting this up. But in short:

docker run -d -p 45484:45484 --name blackd ceeveeya/blackd:latest

Pycharm

Add BlackConnect plugin and set config as on the screenshot below.

BlackConnect config

Now your code should be formatted every time you save it!