Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chrischoy/black2

 
 

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

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Other 0.1%