Skip to content

indigoviolet/lsp-pyrefly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

103 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lsp-pyrefly

License

lsp-mode client for the Pyrefly Python type checker.

This package is a fork of lsp-pyright.

Requirements

Installation

Install Pyrefly:

pip install pyrefly
# or
uv pip install pyrefly

use-package

(use-package lsp-pyrefly
  :ensure t
  :hook ((python-mode python-ts-mode) . lsp-deferred))

Manual

(require 'lsp-pyrefly)
(add-hook 'python-mode-hook #'lsp-deferred)
(add-hook 'python-ts-mode-hook #'lsp-deferred)

Configuration

Pyrefly is configured via pyrefly.toml or [tool.pyrefly] in pyproject.toml. See the Pyrefly configuration docs.

Features

All standard LSP features are supported via Pyrefly:

  • Diagnostics (errors, warnings, hints)
  • Go to definition / type definition / implementation
  • Find references
  • Hover information
  • Completions
  • Signature help
  • Rename
  • Document/workspace symbols
  • Inlay hints
  • Semantic highlighting
  • Call hierarchy

License

GPL-3.0+

About

lsp-mode ❤️ pyrefly

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages

  • Emacs Lisp 100.0%