Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.34 KB

File metadata and controls

24 lines (17 loc) · 1.34 KB

Hatch Code

An extension to manage Hatch environments through vscode-python-environments.

To make use of it, make sure your user settings contain "python.useEnvironmentsExtension": true.

Features

  • List all configured Hatch environments
  • Provide controls to set them as active environment for your project, activate them in a terminal, and remove them1
  • Temporarily2 modify an environment’s packages using the configured installer

Extension Settings

  • hatch.executable: path to the hatch executable (supports ~ expansion). Defaults to the output of which hatch.

Limitations

  • It’s pretty unclear which environments exist on disk and which don’t
  • We list internal envs that users don’t usually interact with, such as hatch-uv and hatch-build

Footnotes

  1. “remove” in this context means deleting it on disk, it will stay listed and will be recreated when interacting with it.

  2. since many actions currently use hatch run and therefore sync the environment, e.g. removing a package that is pulled in as a dependency will not persist for long.