Skip to content

Commit ad7d8f3

Browse files
docs: show PEP 735 dependency-groups in README (#10728)
Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
1 parent 2234234 commit ad7d8f3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,22 @@ python = ">=3.9,<4.0"
6464
tomli = { allow-prereleases = true }
6565

6666
# Dependency groups are supported for organizing your dependencies
67-
[tool.poetry.group.dev.dependencies]
68-
pytest = "^7.1.2"
69-
pytest-cov = "^3.0"
67+
[dependency-groups]
68+
dev = ["pytest (>=7.1.2,<8.0.0)", "pytest-cov (>=3.0,<4.0)"]
69+
docs = ["Sphinx (>=5.1.1,<6.0.0)"]
7070

7171
# ...and can be installed only when explicitly requested
7272
# via 'poetry install --with docs'
7373
[tool.poetry.group.docs]
7474
optional = true
75-
[tool.poetry.group.docs.dependencies]
76-
Sphinx = "^5.1.1"
75+
76+
# Alternatively, you can use Poetry specific syntax
77+
# to specify dependency groups
78+
[tool.poetry.group.lint]
79+
optional = true
80+
81+
[tool.poetry.group.lint.dependencies]
82+
ruff = ">=0.10.0"
7783
```
7884

7985
## Installation

0 commit comments

Comments
 (0)