ruff-pycharm-plugin
ruff-pycharm-plugin copied to clipboard
PyCharm plugin for ruff. This plugin provides reformat code using ruff.
Ruff PyCharm Plugin
A ruff integration plugin for JetBrains PyCharm.
See documentation for more details.
Features
- [x] Inspection and highlighting
- [x] Integrating
Reformat Codewith⌥⇧ ⌘ LorCtrl+Alt+L - [x] Quick Fix (from mouse-over,
⌥⏎orAlt+Enter)- [x] Show fix message
- [x] Suppressing warnings with
# noqa:
- [x] Show code explanation tooltips when hovering
# noqa: <code> - [x] Run
ruff --fixas an action - [x] Run
ruff --fixfor a file when the file is saved - [x] Detect both global and project-specific instances of
ruff- [x] Always use global
ruffcommand - [x] Custom global
ruffexecutable path - [x] Detect a project ruff after packages refreshed
- [x] Always use global
- [x] Execute
ruffcommand as a new process - [x] Support
ruffconfig file path as an option - [x] Detect
ruffexecutable in Conda environment - [x] Detect
ruffexecutable in WSL - [x] Support the Ruff LSP with LSP integration for PyCharm Pro/IDEA Ultimate [Experimental]
- [x]
ruff-lspintegration - [x]
ruff serverintegration - [x] Live Config Reload: Automatically updates from
pyproject.tomlandruff.tomlwithout restarting
- [x]
- [x] Support
ruff formatfor ruff version0.0.289or later [Experimental]
Support ruff-lsp for only PyCharm Pro/IDEA Ultimate
You can enable it in Preferences/Settings -> Tools -> Ruff -> Use ruff-lsp (Experimental) for PyCharm Pro/IDEA Ultimate
The lsp integration applies only below features:
- Errors/warnings highlighting (textDocument/publishDiagnostics)
- Quick-fixes for these errors/warnings (textDocument/codeAction
This is experimental feature.
Screenshots

Installation
JetBrains Marketplace
You can install the stable version on PyCharm's Marketplace (Preferences -> Plugins -> Marketplace).

See the section on managing plugins in the official documentation.
Contribute
See Development section of the documentation.
We are waiting for your contributions to ruff-pycharm-plugin!
Links
Sponsors
|
JetBrains |
Astral |
Datadog, Inc. |