Spurious warning with --no-project --only-group <group>
?
#10743
Labels
question
Asking for clarification or support
--no-project --only-group <group>
?
#10743
Hello! As always, thanks for all the amazing work you've done on
uv
andruff
.I tried searching for an open issue for this, and couldn't find one. Please close with prejudice if there is one that I've missed!
Problem
This isn't a breaking problem per se, since it appears to work. However, it produces a spurious warning that I suspect is a holdover from an earlier restriction 🙂
I have a
pyproject.toml
that looks like this:Notably, the
pyproject.toml
has no[project]
section (since it's a Maturin-based pure-Rust project that pulls all metadata fromCargo.toml
). My goal is to ideally keep it that way, to reduce duplication between the two files.With that configuration, I'm using
uv run --no-project --only-group docs mkdocs build
to build my (mkdocs
-based) documentation.Expected behavior
I expect
uv run --no-project --only-group docs mkdocs build
to produce no warnings, and runmkdocs
correctly.Actual behavior
The command warnings that
--only-group docs
and--no-project
have no effect alongside each other, but then runs successfully:Workarounds
I can add a dummy
[project]
section containing just aname
key, which hushes the warning. However I think the warning is still spurious, since (IIUC) the semantics of PEP 735 dep groups are not dependent on project metadata at all.The text was updated successfully, but these errors were encountered: