pyrefly.py 694 B

1234567891011121314151617181920212223
  1. from .config import load_config_schema
  2. from .utils import ShellSpec
  3. class PyreflyLanguageServer(ShellSpec):
  4. key = cmd = "pyrefly"
  5. args = ["lsp"]
  6. languages = ["python"]
  7. spec = dict(
  8. display_name="Pyrefly",
  9. mime_types=["text/python", "text/x-ipython"],
  10. urls=dict(
  11. home="https://github.com/facebook/pyrefly",
  12. issues="https://github.com/facebook/pyrefly/issues",
  13. ),
  14. install=dict(
  15. pip="pip install pyrefly",
  16. uv="uv add pyrefly",
  17. conda="conda install -c conda-forge pyrefly",
  18. ),
  19. config_schema=load_config_schema(key),
  20. requires_documents_on_disk=False,
  21. )