Awesome Open Source
Awesome Open Source

This plugin is deprecated.

We recommend you use Black instead.

Prettier Python

Prettier Python Plugin

Gitter Travis npm version code style: prettier Follow+Prettier+on+Twitter


Please note that this plugin is under active development, and might not be ready to run on production code yet.


If you're interested in contributing to the development of Prettier for Python, you can follow the CONTRIBUTING guide from Prettier, as it all applies to this repository too.

To test it out on a Python file:

  • Clone this repository.
  • Run yarn.
  • Create a file called
  • Run yarn prettier to check the output.
  • Run yarn prettier -- --write to rewrite file.
  • Check out yarn prettier -- --help for other options.


yarn add --dev --exact prettier @prettier/plugin-python


prettier --write "**/*.py"


Patrick Arminio Danny Weinberg Ryan Ashcraft

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (70,970
python (55,539
prettier (107