Metadata-Version: 2.4
Name: python-lsp-isort
Version: 0.2.1rc1
Summary: isort plugin for the Python LSP Server
Project-URL: Homepage, https://github.com/chantera/python-lsp-isort
Project-URL: Bug Tracker, https://github.com/chantera/python-lsp-isort/issues
Author-email: Hiroki Teranishi <teranishi.hiroki@gmail.com>
License: MIT
License-File: LICENSE
Requires-Python: >=3.7
Requires-Dist: isort>=5.0
Requires-Dist: python-lsp-server
Provides-Extra: dev
Requires-Dist: mypy>=1.13; extra == 'dev'
Requires-Dist: pytest>=8.3; extra == 'dev'
Requires-Dist: ruff>=0.8; extra == 'dev'
Requires-Dist: tomli>=1.1.0; (python_version < '3.11') and extra == 'dev'
Description-Content-Type: text/markdown

# python-lsp-isort

[isort](https://github.com/PyCQA/isort) plugin for the [Python LSP Server](https://github.com/python-lsp/python-lsp-server).

## Install

In the same `virtualenv` as `python-lsp-server`:

```shell
pip install python-lsp-isort
```

## Configuration

The plugin follows [python-lsp-server's configuration](https://github.com/python-lsp/python-lsp-server/#configuration).
These are the valid configuration keys:

- `pylsp.plugins.isort.enabled`: boolean to enable/disable the plugin. `true` by default.
- `pylsp.plugins.isort.*`: any other key-value pair under `pylsp.plugins.isort` is passed to `isort.settings.Config`. See the [reference](https://pycqa.github.io/isort/reference/isort/settings.html#config) for details.

Note that any configurations passed to isort via `pylsp` are ignored when isort detects a config file, such as `pyproject.toml`.
