Documentation

Commentary

Pyrefly (https://pyrefly.org/) is a fast Python type checker
written in Rust. flymake-pyrefly is a Pyrefly backend for Flymake
that helps you to see typing errors in your Python files.

Usage:

  (add-hook 'python-base-mode-hook #'pyrefly-setup-flymake-backend)

  ;; alternatively, with use-package
  (use-package flymake-pyrefly
    :hook (python-base-mode . pyrefly-setup-flymake-backend))

  ;; or if you use eglot
  (add-hook 'eglot-managed-mode-hook #'pyrefly-setup-flymake-backend)

  ;; if you use eglot and use-package
  (use-package flymake-pyrefly
    :hook (eglot-managed-mode . pyrefly-setup-flymake-backend))

  You can also specify the Pyrefly binary through Easy Customization
  variable flymake-pyrefly-binary-file

Requires

Dependencies

Consumers

Reverse Dependencies

No reverse dependencies recorded.