Black plugin for the Python Language Server
Switch branches/tags
Nothing to show
Clone or download
Latest commit 79b6884 Oct 17, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Run in virtualenv Jun 16, 2018
pyls_black Document exceptions raised by black Oct 16, 2018
tests Added support for skip-numeric-underscore-normalization Sep 30, 2018
.gitignore Update .gitignore Jun 15, 2018
LICENSE First commit Jun 14, 2018
Makefile Bump version Jun 16, 2018 Add link to wiki Oct 16, 2018
pyproject.toml Add config support Jun 16, 2018
setup.cfg Add config support Jun 16, 2018 Release 0.3.0 Oct 16, 2018


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.