Skip to main content

Read the latest Real Python tutorials

Project description

thonny-black-formatter

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/

How the plugin works

Install the plugin

The plugin must be installed using the Thonny menu:

Tools -> Manage plug-ins...

Format your code

The plugin adds the following menu entry:

Tools -> Format with black...

Use this command to format the current source being edited in the active window.

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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thonny_black_formatter-0.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thonny-black-formatter-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for thonny-black-formatter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7b21bd5f84cf7b94d4e6999cd238c4360f9caa19b77134da008f3806a8943b93
MD5 cbf73c9d04d436b7d0cb90acba325a5e
BLAKE2b-256 9b04c723570e67ec3b2a4fa5c976c013f137b062f9fbd888a49b22cf6b6ef8bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thonny_black_formatter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d9681597329cb6b67d9c441c9475a715e657fad43983171a10aec1007728d17c
MD5 8fd507b6e5c075e585b47bbd838a58b5
BLAKE2b-256 69b0457bc3bf80225f1d7e3c6aa9de8398a3b03bca0d4cb881a90ef57dd5f661

See more details on using hashes here.

Supported by

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