Skip to content

PyCharm plugin for ruff. This plugin provides reformat code using ruff.

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE_apache_version_2.txt
Notifications You must be signed in to change notification settings

koxudaxi/ruff-pycharm-plugin

Folders and files

NameName
Last commit message
Last commit date
Jan 28, 2025
Jul 27, 2023
Sep 2, 2024
Sep 10, 2024
Mar 5, 2025
Mar 15, 2025
Mar 17, 2025
Dec 1, 2022
Mar 5, 2025
Mar 13, 2023
Mar 20, 2025
Dec 1, 2022
Dec 1, 2022
Dec 1, 2022
Sep 10, 2024
Jan 12, 2025
Mar 20, 2025
Feb 22, 2024
Feb 22, 2024
Dec 4, 2022
Feb 22, 2024
Apr 3, 2024
Feb 23, 2024

Repository files navigation

Ruff PyCharm Plugin

License: MIT JetBrains IntelliJ Plugins Rating Total downloads

A ruff integration plugin for JetBrains PyCharm.

See documentation for more details.

Features

  • Inspection and highlighting
  • Integrating Reformat Code with ⌥⇧ ⌘ L or Ctrl+Alt+L
  • Quick Fix (from mouse-over, ⌥⏎ or Alt+Enter)
    • Show fix message
    • Suppressing warnings with # noqa:
  • Show code explanation tooltips when hovering # noqa: <code>
  • Run ruff --fix as an action
  • Run ruff --fix for a file when the file is saved
  • Detect both global and project-specific instances of ruff
    • Always use global ruff command
    • Custom global ruff executable path
    • Detect a project ruff after packages refreshed
  • Execute ruff command as a new process
  • Support ruff config file path as an option
  • Detect ruff executable in Conda environment
  • Detect ruff executable in WSL
  • Support Ruff LSP feature
    • LSP Client
    • LSP Server
      • ruff-lsp integration
      • ruff server integration
    • Live Config Reload: Automatically updates from pyproject.toml and ruff.toml without restarting
  • Support ruff format for ruff version 0.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:

This is experimental feature.

Screenshots

inspection quickfix settings

Installation

JetBrains Marketplace

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

search plugin

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 Logo

JetBrains

Astral Logo

Astral

Datadog, Inc. Logo

Datadog, Inc.