Black-macchiato plugin for the Python Language Server (pyls)
To use the black code formatter with pyls, in most cases you can just use the pyls-black plugin. This plugin serves as an alternative if you need the ability to do range formatting.
Such functionality is provided by black-macchiato, while black only formats complete documents
(see the black-macchiato readme for more background).
This plugin works similarly to pyls-black, but it uses the wrapping functionality from
black-macchiato to enable formatting of (mostly) arbitrary ranges.
Configuration
Install this plugin into the same virtualenv as pyls. For example, on my system I am using
vim-lsp and vim-lsp-settings, so I do the following:
$ ~/.local/share/vim-lsp-settings/servers/pyls/venv/bin/pip install pyls-black-macchiato
When formatting, the plugin will use logic similar to what's in black and pyls-black to search
for a pyproject.toml and load its settings from there.
Metadata
Release files for pyls-black-macchiato 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyls-black-macchiato-0.1.3.tar.gz | 3.6 kB | Without provenance | Details for pyls-black-macchiato-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyls_black_macchiato-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pyls_black_macchiato-0.1.3-py3-none-any.whl |
Total release size: 8.5 kB
Release files / pyls-black-macchiato-0.1.3.tar.gz
| Download URL | pyls-black-macchiato-0.1.3.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b154035d9c40e1574ab59f32a68627bf09e1da03cc75b0a8262cdee6bd3c9c1
|
|
BLAKE2b-256 checksum How to use checksums |
9abf573ca6c94281237a3345a123feb18d20d62e617eeae8e35018fb8e04ca27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.8.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
|
Release files / pyls_black_macchiato-0.1.3-py3-none-any.whl
| Download URL | pyls_black_macchiato-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
302bbd18459e9a7048ba0728980a8682b29270c3e1678d34f1fad86997527ffc
|
|
BLAKE2b-256 checksum How to use checksums |
c556c7a09f92cc0a234b45cfadbe4720452d53d368148512d5c3412c16b58433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.8.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.6
|
Security for pyls-black-macchiato 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.