Skip to content

Commit c56c952

Browse files
committed
Add 'docs' to dependency groups example
This is a small example update based on some observed usage of Dependency Groups. We wouldn't want to bloat the example, but many projects are using a `docs` group and this example therefore better exemplifies how Dependency Groups can be used to declare isolated/separate groups.
1 parent 0454c8e commit c56c952

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/specifications/dependency-groups.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ Specification
2222
Examples
2323
--------
2424

25-
This is a simple table which shows a ``test`` group::
25+
This is a simple table which shows ``docs`` and ``test`` groups::
2626

2727
[dependency-groups]
28+
docs = ["sphinx"]
2829
test = ["pytest>7", "coverage"]
2930

30-
and a similar table which defines ``test`` and ``coverage`` groups::
31+
and a similar table which defines ``docs``, ``test``, and ``coverage`` groups::
3132

3233
[dependency-groups]
34+
docs = ["sphinx"]
3335
coverage = ["coverage[toml]"]
3436
test = ["pytest>7", {include-group = "coverage"}]
3537

0 commit comments

Comments
 (0)