Skip to main content

Black plugin for the Python Language Server

Project description


PyPI CircleCI branch PyPI - Python Version Code style: 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyls-black, version 0.4.4
Filename, size File type Python version Upload date Hashes
Filename, size pyls_black-0.4.4-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyls-black-0.4.4.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page