Black is the uncompromising Python code formatter. How to install Black? 1. pip install black 2. Install black extension in your favourite code editor. For sublime text, search for "sublack" in Package Control.