Skip to main content

A plugin to format your python code with Black in Thonny IDE. (For Thonny release >= 4.x)

Project description

Thonny black formater plugin

Thonny plugin for source formatting with black (Thonny >= 4.x)

This plugin enables formatting with black tool inside Thonny python editor.

History and rationale

Originally there was this plugin available:

https://pypi.org/project/thonny-black-format/

From Thonny release 4.0.0 the plugin stopped working and has been found in an abandoned project state (dead github project home page link) but still installable from PyPI repository.

This is an adptation built from the sources installes and modified in order to make it work for Thonny release 4.0.0 and - hopefully - subsequent.

Credits

All credits go to the author "Franccisco" of the original plugin.

All information available to me related to the original plugin is in the following two links.

Github repo: https://github.com/Franccisco/thonny-black-code-format [dead link] Docs: https://pypi.org/project/thonny-black-format/

Installation

Credits for this part of the readme go to the original author Franccisco

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.

Alternatively, you can install via pip with ```pip install --user thonny-black-format````

Usage

Credits for this part of the readme go to the original author Franccisco

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thonny-black-formatter-0.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

thonny_black_formatter-0.0.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file thonny-black-formatter-0.0.4.tar.gz.

File metadata

File hashes

Hashes for thonny-black-formatter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 76c386bec6ff9973ded13f080f35bb27f701c1ac2bf0b77b7f361651f86b0f8c
MD5 5167110bfeb743bcecfa5be43331b106
BLAKE2b-256 00d171e4e69ad8e7c52a1b2755828b45e72f0484c0b61a67af0a5b97178d2446

See more details on using hashes here.

File details

Details for the file thonny_black_formatter-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for thonny_black_formatter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d3f577000149cfd7a07387d5d22f1c44644603042c3c6329054970edfc1f8940
MD5 4b12de3ea6c2b84f9562b43f7ca5a003
BLAKE2b-256 b1cde170d3b302f1f1e94074c35ed3e57e527573d80e255eaaa08bbf3cb7552d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page