Ruff

Линтер и форматтер Ruff для Python: проверки, быстрые исправления, ruff --fix при сохранении

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]

JetBrains LSP client support

In unified PyCharm builds, including free mode, you can enable the JetBrains LSP client in Preferences/Settings -> Tools -> Ruff.

PyCharm made the LSP client APIs available without a paid subscription starting with 2025.1: https://platform.jetbrains.com/t/update-on-lsp-and-template-language-apis-in-pycharm/1453

The lsp integration applies only below features:

This is experimental feature.

Screenshots

inspection quickfix settings

ВерсияOpenIDEДатаРазмер
2026.219.07.2026226,8 КБСкачать
2026.116.04.2026225,4 КБСкачать
2024.3 – 2025.315.12.2025224,8 КБСкачать
2024.3 – 2025.312.12.2025224,8 КБСкачать
2024.3 – 2025.223.08.2025222 КБСкачать
2024.3 – 2025.205.08.2025218,7 КБСкачать
2024.3 – 2025.107.04.2025218,1 КБСкачать
2024.3 – 2025.120.03.2025217,7 КБСкачать
2024.305.03.2025208,4 КБСкачать
2024.317.02.2025190,8 КБСкачать
2024.2 – 2024.310.11.2024193,4 КБСкачать