Black plugin for the Python Language Server
Project description
pyls-black
Black plugin for the Python Language Server.
In the same virtualenv
as python-language-server
:
pip3 install pyls-black
To avoid unexpected results you should make sure yapf
and autopep8
are not installed.
pyls-black
can either format an entire file or just the selected text.- The code will only be formatted if it is syntactically valid Python.
- Text selections are treated as if they were a separate Python file. Unfortunately this means you can't format an indented block of code.
pyls-black
will use your project's pyproject.toml if it has one.
See the wiki for instructions on how to use pyls-black
with popular text editors.
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
pyls-black-0.4.5.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyls_black-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 403d3c9978d1524fddcc5be2e3295b96f310adff13a9afaecaafc2f2a995cf85 |
|
MD5 | c2d510d3f12166e20a941a0e4958c4cd |
|
BLAKE2b-256 | e847ea8a54b4991449654fce287d1d61ec9cd3b34b4815989343a9826498cfcd |