Files
white/README.rst
2018-03-15 06:30:42 -04:00

34 lines
745 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
White: Black, but brighter (PEP8inspired)
==========================================
`Black <https://github.com/ambv/black>`_ is an amazing tool for autoformatting
Python code in a style that I prefer. I use it in all my projects.
It has **one** configuration option — to change its default linelength of ``88``
chars to, say, ``79``, like `PEP8 <http://pep8.org>`_ recommends.
-----------
That is *exactly* what **white** does. It invokes ``$ black --line-length 79`` on your behalf.
Usage
=====
::
$ white myapp.py
reformatted myapp.py
.. image:: http://share.kennethreitz.org/2L2m1U1A3m0L/Screen%20Shot%202018-03-15%20at%206.21.04%20AM.png
Installation
============
::
$ pipenv install white
✨🍰✨