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
File details
Details for the file thonny-black-formatter-0.0.4.tar.gz
.
File metadata
- Download URL: thonny-black-formatter-0.0.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c386bec6ff9973ded13f080f35bb27f701c1ac2bf0b77b7f361651f86b0f8c |
|
MD5 | 5167110bfeb743bcecfa5be43331b106 |
|
BLAKE2b-256 | 00d171e4e69ad8e7c52a1b2755828b45e72f0484c0b61a67af0a5b97178d2446 |
File details
Details for the file thonny_black_formatter-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: thonny_black_formatter-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3f577000149cfd7a07387d5d22f1c44644603042c3c6329054970edfc1f8940 |
|
MD5 | 4b12de3ea6c2b84f9562b43f7ca5a003 |
|
BLAKE2b-256 | b1cde170d3b302f1f1e94074c35ed3e57e527573d80e255eaaa08bbf3cb7552d |