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.
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.2.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pyls_black-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d2153e36a8672d408367b3ea17a8ab2f65987d85200923d7320cab0f3bd35e5 |
|
MD5 | 23d11ccee9519f68797452d5f8fb5b24 |
|
BLAKE2b-256 | e520eb297d2d76def5f6483f7080592e8b94a8e0a707f85e2631ef887a9825ee |