home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
68.78k stars 28.11k forks source link

Use uv pip to install requirements using vscode tasks #116164

Open piitaya opened 1 week ago

piitaya commented 1 week ago

Proposed change

The vscode tasks used pip3 instead of uv. This speed up the dev env setup.

Type of change

Additional information

Checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

To help with the load of incoming pull requests:

Thomas55555 commented 1 week ago

I've tested this in a fresh codespace and get this error:

error: Failed to locate a virtualenv or Conda environment (checked: `VIRTUAL_ENV`, `CONDA_PREFIX`, and `.venv`). Run `uv venv` to create a virtualenv.

After running uv venv it works.