File size: 1,262 Bytes
d1ceb73 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
from .config import load_config_schema
from .utils import PythonModuleSpec
class PalantirPythonLanguageServer(PythonModuleSpec):
python_module = key = "pyls"
languages = ["python"]
spec = dict(
display_name="pyls",
mime_types=["text/python", "text/x-ipython"],
urls=dict(
home="https://github.com/palantir/python-language-server",
issues="https://github.com/palantir/python-language-server/issues",
),
install=dict(
pip="pip install 'python-language-server[all]'",
conda="conda install -c conda-forge python-language-server",
),
extend=[
dict(
display_name="pyls-mypy",
install=dict(
pip="pip install pyls-mypy", conda="conda install pyls-mypy"
),
),
dict(
display_name="pyls-black",
install=dict(
pip="pip install pyls-black", conda="conda install pyls-black"
),
),
dict(display_name="pyls-isort", install=dict(pip="pip install pyls-isort")),
],
config_schema=load_config_schema(key),
env=dict(PYTHONUNBUFFERED="1"),
)
|