From c2a3f6516e4fa5fc72f997306501131ac11db8d8 Mon Sep 17 00:00:00 2001 From: Morgan Bartholomew Date: Fri, 29 Aug 2025 15:51:51 +1000 Subject: [PATCH] [python] PY-83733 ruff support GitOrigin-RevId: df443269c3a29cfe9b5f3b67663a1f998396e738 --- .../ide/impl/PyCharmProjectConfigurableStartupActivity.kt | 4 ++++ python/python-psi-impl/resources/intellij.python.psi.impl.xml | 1 + python/setup-test-environment/build.gradle.kts | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/PyCharmProjectConfigurableStartupActivity.kt b/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/PyCharmProjectConfigurableStartupActivity.kt index aa6b8ad12bda..733e3124beba 100644 --- a/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/PyCharmProjectConfigurableStartupActivity.kt +++ b/python/ide/impl/src/com/intellij/pycharm/community/ide/impl/PyCharmProjectConfigurableStartupActivity.kt @@ -47,6 +47,10 @@ class PyCharmProjectConfigurableStartupActivity : ProjectActivity { ep.groupId = PythonToolsConfigurable.ID ep.groupWeight = 40 } + "com.intellij.python.ruff.RuffConfigurable" -> { + ep.groupId = PythonToolsConfigurable.ID + ep.groupWeight = 40 + } "com.intellij.python.pyright.PyrightConfigurable" -> { ep.groupId = PythonToolsConfigurable.ID ep.groupWeight = 40 diff --git a/python/python-psi-impl/resources/intellij.python.psi.impl.xml b/python/python-psi-impl/resources/intellij.python.psi.impl.xml index 5cb9b01c2deb..8e823ed9f305 100644 --- a/python/python-psi-impl/resources/intellij.python.psi.impl.xml +++ b/python/python-psi-impl/resources/intellij.python.psi.impl.xml @@ -128,6 +128,7 @@ diff --git a/python/setup-test-environment/build.gradle.kts b/python/setup-test-environment/build.gradle.kts index 617f9fb36d73..e58a7f578555 100644 --- a/python/setup-test-environment/build.gradle.kts +++ b/python/setup-test-environment/build.gradle.kts @@ -201,5 +201,5 @@ createPython("python3.12", "3.12", createPython("conda", "Miniconda3-py312_25.1.1-0", listOf(), listOf("conda"), type = PythonType.CONDA) createPython("python3.13", "3.13", - listOf(), - listOf("python3.13", "python3")) + listOf("ruff"), + listOf("python3.13", "python3", "ruff"))