chrischoy / black2

Comprimised Python code formatter

Home Page:https://black.readthedocs.io/en/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Black with 2 spaces

Black claims itself as uncompromising PEP8 compliant formatter, but as you can see on the .flake8, it already made some compromises. However, they are unwilling to compromise on the 4 space "guideline".

For those who got annoyed by psf#378, install black2 for black with 2 space indent with

pip install git+https://github.com/chrischoy/black2

Or in your project, you can add this line to your requirements.txt

git+https://github.com/chrischoy/black2

and

pip install -r requirements.txt

Usage

black2 <python_file.py>

Links

About

Comprimised Python code formatter

https://black.readthedocs.io/en/stable/

License:MIT License


Languages

Language:Python 99.9%Language:Vim Script 0.1%Language:Dockerfile 0.0%