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:
- Go to
Tools -> Format with Black
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for thonny-black-formatter-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c386bec6ff9973ded13f080f35bb27f701c1ac2bf0b77b7f361651f86b0f8c |
|
MD5 | 5167110bfeb743bcecfa5be43331b106 |
|
BLAKE2b-256 | 00d171e4e69ad8e7c52a1b2755828b45e72f0484c0b61a67af0a5b97178d2446 |
Hashes for thonny_black_formatter-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3f577000149cfd7a07387d5d22f1c44644603042c3c6329054970edfc1f8940 |
|
MD5 | 4b12de3ea6c2b84f9562b43f7ca5a003 |
|
BLAKE2b-256 | b1cde170d3b302f1f1e94074c35ed3e57e527573d80e255eaaa08bbf3cb7552d |