Skip to content

Commit 89c52a8

Browse files
authored
fix optional comment and add poetry specific group
1 parent 5b4ad74 commit 89c52a8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,23 @@ python = ">=3.9,<4.0"
6363
# Version-specific dependencies with prereleases allowed
6464
tomli = { allow-prereleases = true }
6565

66-
# Dependency groups are supported for organizing your dependencies (PEP 735)
66+
# Dependency groups are supported for organizing your dependencies
6767
[dependency-groups]
6868
dev = ["pytest (>=7.1.2,<8.0.0)", "pytest-cov (>=3.0,<4.0)"]
69+
docs = ["Sphinx (>=5.1.1,<6.0.0)"]
70+
6971
# ...and can be installed only when explicitly requested
7072
# via 'poetry install --with docs'
71-
docs = ["Sphinx (>=5.1.1,<6.0.0)"]
73+
[tool.poetry.group.docs]
74+
optional = true
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"
7283
```
7384

7485
## Installation

0 commit comments

Comments
 (0)