Files
MLPproject/.venv/lib/python3.12/site-packages/jupyter_lsp/specs/pyrefly.py
2025-10-23 15:44:32 +02:00

24 lines
694 B
Python

from .config import load_config_schema
from .utils import ShellSpec
class PyreflyLanguageServer(ShellSpec):
key = cmd = "pyrefly"
args = ["lsp"]
languages = ["python"]
spec = dict(
display_name="Pyrefly",
mime_types=["text/python", "text/x-ipython"],
urls=dict(
home="https://github.com/facebook/pyrefly",
issues="https://github.com/facebook/pyrefly/issues",
),
install=dict(
pip="pip install pyrefly",
uv="uv add pyrefly",
conda="conda install -c conda-forge pyrefly",
),
config_schema=load_config_schema(key),
requires_documents_on_disk=False,
)