uv
uv copied to clipboard
`uv add` should assume `--dev` if in a virtual workspace root
I find it somewhat tedious that you have to add --dev:
❯ uv add flask
error: Found a virtual workspace root, but virtual projects do not support production dependencies (instead, use: `uv add --dev`)
What do you think about suggesting to add the new dependency to a specific workspace member as another solution?
This may not be applicable if we allow virtual projects.
No longer relevant as of v0.4.0 -- these "virtual workspace roots" were deprecated. Instead, users can just omit [build-system], and uv will avoid building and installing it by default (but will still resolve and include its dependencies).