Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/concepts/projects/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,26 @@ to resolve the requirements of the project with an error.
If you have dependency groups that conflict with one another, resolution will fail
unless you explicitly [declare them as conflicting](./config.md#conflicting-dependencies).

### Nesting groups

A dependency group can include other dependency groups, e.g.:

```toml title="pyproject.toml"
[dependency-groups]
dev = [
{include-group = "lint"}
{include-group = "test"}
]
lint = [
"ruff"
]
test = [
"pytest"
]
```

An included group's dependencies cannot conflict with the other dependencies declared in a group.

### Default groups

By default, uv includes the `dev` dependency group in the environment (e.g., during `uv run` or
Expand Down
Loading