[python][hatch] create module structure only for pure python projects (PY-79939)

+ add work directory and hatch env name to hatch sdk data
+ support hatch run on cli level

GitOrigin-RevId: 4782bc52fcd23775b51903ae05f2575f574401cc
This commit is contained in:
Vitaly Legchilkin
2025-03-25 19:45:38 +00:00
committed by intellij-monorepo-bot
parent f68c037805
commit 61ec26ac28
26 changed files with 295 additions and 122 deletions
@@ -844,7 +844,10 @@ The Python plug-in provides smart editing for Python scripts. The feature set of
<pyAddSdkProvider implementation="com.jetbrains.python.sdk.uv.ui.PyAddUvSdkProvider"/>
<pythonFlavorProvider implementation="com.jetbrains.python.sdk.uv.UvSdkFlavorProvider"/>
<pythonFlavorProvider implementation="com.jetbrains.python.sdk.hatch.HatchSdkFlavorProvider"/>
<!-- Hatch -->
<pySdkProvider implementation="com.jetbrains.python.hatch.sdk.HatchSdkProvider"/>
<pythonFlavorProvider implementation="com.jetbrains.python.hatch.sdk.HatchSdkFlavorProvider"/>
<pythonPackageManagerProvider implementation="com.jetbrains.python.hatch.packaging.HatchPackageManagerProvider"/>
<!-- SDK Flavors -->
<pythonSdkFlavor implementation="com.jetbrains.python.sdk.flavors.conda.CondaEnvSdkFlavor"/>