ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-pyproject

by sublimelsp ST4

pyproject.toml support for Sublime's LSP plugin provided through pyproject server

Labels lsp, toml

Details

Installs

  • Total 297
  • Win 111
  • Mac 88
  • Linux 98
Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2
Windows 0 2 0 2 0 0 0 0 1 0 1 1 2 0 0 0 1 0 0 0 3 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 2 0 1 0 1
Mac 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 3 1 0 0 0 1 0 0 0 1 1 0 2 0 0 1 0 0 0 2 0 0 0 1 0 0 0 0 0
Linux 0 0 0 0 0 1 0 2 0 0 2 0 0 0 0 0 0 2 0 1 2 0 0 0 0 1 0 0 2 0 0 0 0 0 1 0 1 0 1 0 1 0 1 1 3 1

Readme

Source
raw.​githubusercontent.​com

LSP-pyproject

This is a helper package that starts the pyproject language server for you.

Installation

  1. Install LSP via Package Control.
  2. Install LSP-pyproject via Package Control.

Applicable files

This language server operates on views with the source.toml base scope but only those with a pyproject.toml file name.

Configuration

You can edit the global settings by opening the Preferences: LSP-pyproject Settings from the Command Palette.

Configure server-specific rules in your pyproject.toml under the [tool.pyproject] section.

Each rule can be set to a severity level (error, warning, hint, information (or info), or off) using either a simple string or a table with a level field:

Error: language “toml” is not supported
[tool.pyproject.rules]
project-unknown-keys = "warning"
project-dependency-updates = { level = "hint" }
project-requires-python-upper-bound = "off"

Rule identifiers are shown in diagnostic output (e.g., error[project-unknown-keys]). Rules that aren't explicitly configured use their default severity level.