Black plugin for the Python LSP Server
Project description
python-lsp-black
Black plugin for the Python LSP Server.
In the same virtualenv
as python-lsp-server
:
pip install python-lsp-black
To avoid unexpected results you should make sure yapf
and autopep8
are not installed.
python-lsp-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.
python-lsp-black
will use your project's pyproject.toml if it has one.
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
python-lsp-black-1.0.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for python_lsp_black-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a5fd9e37d27432fa003d01d88339889ee6090c04de5f80b588b50c9dc9f472b |
|
MD5 | 87c62d99c3665e4ee13b6b7e141ad328 |
|
BLAKE2b-256 | b0aa1b38ea9baedae06ac55ee3265924f244f10886a3474b78482d919b36d618 |