Skip to main content

Black plugin for the Python Language Server

Project description

pyls-black

PyPI 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.

Source Distribution

pyls-black-0.4.7.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pyls_black-0.4.7-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pyls-black-0.4.7.tar.gz.

File metadata

  • Download URL: pyls-black-0.4.7.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.2

File hashes

Hashes for pyls-black-0.4.7.tar.gz
Algorithm Hash digest
SHA256 6e087adca067391a65a577676ea2d62f0a6cb2bf23bf45dbefbbd48c0d2bb8d4
MD5 6db5cd4c19658f7bc93cdca60d3af832
BLAKE2b-256 5bbe3295df9635f7059e1229a3d6770284306dd295ea653fba5ce5b278af3d79

See more details on using hashes here.

File details

Details for the file pyls_black-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: pyls_black-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.2

File hashes

Hashes for pyls_black-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2afd8c652768257e9eeb942f3fe9314a91b44ce4a4a172d99c47e2275525382e
MD5 d55abd0633d3eaf980cf40c5ecbf8765
BLAKE2b-256 afe25af85900cd08210a8271964e17d750d80cc5649ca366b5f50fd90dbcc373

See more details on using hashes here.

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