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.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for pyls_black-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4cca845f950af45d1434024d4067f22038f945b9c33cb3b7acb95932bf0ee52 |
|
MD5 | edb0adc3adb2f313771a71d85dc090ae |
|
BLAKE2b-256 | a78deb3691fbf0accbf5037a2bf36e6be60d31a8150c9c0ef326890f478a5751 |