Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 399 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 399 Bytes

Black python code formatter with Docker

This image lets you run black without installing python3.6 or messing up with virtualenv/pyenv.

Install

Add this function to your .bashrc/.zshrc:

black() { docker run -v $(pwd):/code jbbarth/black $*; }

Reload your shell (source or exit/reopen) and you're good to go!