Clarify interaction of --group
and default dev dependencies
#11691
Labels
question
Asking for clarification or support
--group
and default dev dependencies
#11691
Question
Considering dependency groups like:
When prepping for test runs in nox, I'd expect to be able to do:
But with that invocation, the dev dependency group is also included. My next attempt was:
But that doesn't include the project's dependencies either, which doesn't work for testing. So my final attempt is:
Which works but seems clunky. IMO, it would be more intuitive if:
And if I always want dev installed when tests is installed then I use
include-group
to make that happen instead of relying on implicit dev install.IMO, uv isn't currently using the dev group as a default. A default implies it's the selection unless something else is chosen. I think if uv adjusted it to be a true default, the ux might be better.
Also, FWIW, that there are seven different CLI options for dealing with dependency groups. Does that seem like a lot to anyone else?
As always, YMMV. :)
Thanks.
Platform
Ubuntu 24.04 x64
Version
0.6.2
The text was updated successfully, but these errors were encountered: