[python] PY-84398 get rid of embedded loading rules in PythonCore plugin, fix related issues

GitOrigin-RevId: 54f4bb333e0ca06a002a86c75f0bbc474863253e
This commit is contained in:
Vladimir.Koshelev
2025-09-26 15:15:29 +00:00
committed by intellij-monorepo-bot
parent 73fa5bfe55
commit ba393efaa7
35 changed files with 308 additions and 124 deletions
@@ -1,11 +1,21 @@
<idea-plugin>
<dependencies>
<module name="intellij.python.psi"/>
<module name="intellij.python.community"/>
<module name="intellij.python.community.helpersLocator"/>
</dependencies>
<extensionPoints>
<extensionPoint qualifiedName="Pythonid.pyAnnotator" interface="com.jetbrains.python.validation.PyAnnotator" dynamic="true"/>
<extensionPoint qualifiedName="Pythonid.documentationLinkProvider"
interface="com.jetbrains.python.documentation.PythonDocumentationLinkProvider"
dynamic="true"/>
<extensionPoint qualifiedName="Pythonid.knownDecoratorProvider"
interface="com.jetbrains.python.psi.PyKnownDecoratorProvider"
dynamic="true"/>
<extensionPoint qualifiedName="Pythonid.typeHintProvider" interface="com.jetbrains.python.codeInsight.typing.PyTypeHintProvider" dynamic="true"/>
</extensionPoints>
<extensions defaultExtensionNs="com.intellij">
@@ -54,6 +64,7 @@
<definitionsSearch implementation="com.jetbrains.python.psi.search.PyDefinitionsSearch"/>
<stubElementTypeHolder class="com.jetbrains.python.PyStubElementTypes" externalIdPrefix="py."/>
<indexPatternBuilder implementation="com.jetbrains.python.PyIndexPatternBuilder"/>
<gotoDeclarationHandler implementation="com.jetbrains.python.codeInsight.PyBreakContinueGotoProvider" order="FIRST"/>
<gotoDeclarationHandler implementation="com.jetbrains.python.psi.impl.PyGotoDeclarationHandler"/>
@@ -259,237 +270,260 @@
<localInspection language="Python" shortName="PyEnumInspection" suppressId="PyEnum" bundle="messages.PyPsiBundle" key="INSP.NAME.enum" groupKey="INSP.GROUP.python" enabledByDefault="true" level="WARNING" implementationClass="com.jetbrains.python.inspections.PyEnumInspection"/>
<localInspection language="Python" shortName="PyNewTypeInspection" suppressId="PyNewType" bundle="messages.PyPsiBundle" key="INSP.NAME.new.type" groupKey="INSP.GROUP.python" enabledByDefault="true" level="WARNING" implementationClass="com.jetbrains.python.inspections.PyNewTypeInspection"/>
<codeInsight.parameterNameHints language="Python"
implementationClass="com.jetbrains.python.inlayHints.PythonInlayParameterHintsProvider"/>
<codeInsight.declarativeInlayProvider group="TYPES_GROUP"
bundle="messages.PyPsiBundle"
implementationClass="com.jetbrains.python.inlayHints.PyTypeInlayHintsProvider"
isEnabledByDefault="true"
language="Python"
nameKey="INLAY.type.hints"
providerId="python.type.inlays">
<option bundle="messages.PyPsiBundle" descriptionKey="INLAY.reveal.type" enabledByDefault="true" nameKey="INLAY.reveal.type" optionId="python.type.inlays.reveal_type" />
<option bundle="messages.PyPsiBundle" descriptionKey="INLAY.function.return" enabledByDefault="false" nameKey="INLAY.function.return" optionId="python.type.inlays.function.return" />
</codeInsight.declarativeInlayProvider>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertMethodToPropertyIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.ImportToImportFromIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertStaticMethodToFunctionIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.SpecifyTypeInDocstringIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyHideTypeAnnotationsIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.SpecifyTypeInPy3AnnotationsIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyAnnotateTypesIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.TypeAssertionIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.ImportFromToImportIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyAbsoluteToRelativeImportIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyRelativeToAbsoluteImportIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.ImportToggleAliasIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PySplitIfIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyNegateComparisonIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyStringConcatenationToFormatIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.ConvertFormatOperatorToMethodIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyFlipComparisonIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyDemorganIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.ReplaceListComprehensionWithForIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyJoinIfIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyDictConstructorToLiteralFormIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyDictLiteralFormToConstructorIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyQuotedStringIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyFStringToTStringIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertLambdaToFunctionIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.ConvertVariadicParamIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertTripleQuotedStringIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertLiteralToTupleIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertLiteralToListIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertLiteralToSetIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyTransformConditionalExpressionIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyGenerateDocstringIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyYieldFromIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.convertToFString.PyConvertToFStringIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyConvertTypeCommentToVariableAnnotationIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyAnnotateVariableTypeIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>
</intentionAction>
<intentionAction>
<language>Python</language>
<className>com.jetbrains.python.codeInsight.intentions.PyInvertIfConditionIntention</className>
<bundleName>messages.PyPsiBundle</bundleName>
<categoryKey>INTN.category.python</categoryKey>