Ruff PyCharm Plugin🔗
Help🔗
See documentation for more details.
Sponsors🔗
JetBrains |
Astral |
Datadog, Inc. |
Quick Installation🔗
ScreenShots🔗
Features🔗
- [x] Inspection and highlighting
- [x] Integrating
Reformat Code
with⌥⇧ ⌘ L
orCtrl+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 --fix
as an action - [x] Run
ruff --fix
for a file when the file is saved - [x] Detect both global and project-specific instances of
ruff
- [x] Always use global
ruff
command - [x] Custom global
ruff
executable path - [x] Detect a project ruff after packages refreshed
- [x] Execute
ruff
command as a new process - [x] Support
ruff
config file path as an option - [x] Detect
ruff
executable in Conda environment - [x] Detect
ruff
executable in WSL - [x] Support Ruff LSP feature
- LSP Client
- [x] Intellij LSP integration for PyCharm Pro/IDEA Ultimate
- [x] LSP4IJ by RedHat (Requires installation of the LSP4IJ plugin)
- LSP Server
- [x]
ruff-lsp
integration - [x]
ruff server
integration
- [x]
- [x] Live Config Reload: Automatically updates from
pyproject.toml
andruff.toml
without restarting - [x] Support
ruff format
for ruff version0.0.289
or 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.
Contribute🔗
We are waiting for your contributions to ruff-pycharm-plugin
.