by pythonic-emacs

pythonic-emacs / blacken

Python Black for Emacs

137 Stars 27 Forks Last release: Not found 26 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Use the python

package to reformat your python buffers.


The whole buffer can be reformatted with

. If you want to format every time you save, enable
in relevant python buffers. Note that if
is non-nil, then blacken will only run if your
contains the
setting. This setting is off by default.


The following options change the behavior of black when reformatting buffers.

  • blacken-allow-py36
    Allow using Python 3.6-only syntax on all input files.
  • blacken-skip-string-normalization
    Don't normalize string quotes or prefixes.
  • blacken-fast-unsafe
    Skips temporary sanity checks.
  • blacken-line-length
    Max line length enforced by blacken.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.