Skip to content
master
Go to file
Code

Latest commit

When there is no text to format or the required Black package is not
found, a generic "Error!" message was displayed in the title bar. As
this is not so explanatory, they were replaced by specific error titles.
a5588f0

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

Thonny black code format plugin

Code style: black PyPI version PyPI py versions PYPI license Continuous Integration - Ubuntu Continuous Integration - OSX Continuous Integration - Windows

Automatically format your python code with Black!

Installation

  1. This can be easily installed via Thonny. Go to Tools -> Manage plug-ins..., type thonny-black-format and click on Find package from PyPI. Install the plugin and restart Thonny.
  2. Alternatively, you can install via pip with pip install --user thonny-black-format

Usage

There are two ways to run the plugin:

  1. Go to Tools -> Format with Black
  2. Press Ctrl+Alt+c

All changes will be automatically saved. If you prefer, you can undo them.

Contributing

Contributions are welcome! Feel free to sumbit an issue and/or a pull request.

Useful links:

PyPI

Thonny

Black

You can’t perform that action at this time.