Skip to main content

Black plugin for the Python LSP Server

Project description

python-lsp-black

PyPI Code style: black Python

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)

Uploaded Source

Built Distribution

python_lsp_black-1.0.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page