This is a basic recipe for hooks and templates, for gh-worktree, when using Jetbrains IDEs. It uses the SDK-Import IDE plugin to automatically configure the project's Python SDK with the virtualenv that was created in the hooks. Once the worktree is created, you simply use File > Open to open the worktree directory, and the IDE will detect it as a project. Use Tools > Reimport SDK if the Python SDK is not picked up immediately.
This recipe combines multiple aspects of the other recipes, including:
direnvuv-python