Skip to content

Commit f4b5123

Browse files
authored
Merge pull request #2142 from harshitethic/docs/dependency-groups-crosslink
Document dependency-groups in the pyproject.toml specification
2 parents 9d2c254 + 7fb23eb commit f4b5123

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎source/guides/writing-pyproject-toml.rst‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Writing your ``pyproject.toml``
66

77
``pyproject.toml`` is a configuration file used by packaging tools, as
88
well as other tools such as linters, type checkers, etc. There are
9-
three possible TOML tables in this file.
9+
four possible TOML tables in this file.
1010

1111
- The ``[build-system]`` table is **strongly recommended**. It allows
1212
you to declare which :term:`build backend` you use and which other
@@ -15,6 +15,10 @@ three possible TOML tables in this file.
1515
- The ``[project]`` table is the format that most build backends use to specify
1616
your project's basic metadata, such as the dependencies, your name, etc.
1717

18+
- The ``[dependency-groups]`` table specifies dependencies for development tasks
19+
such as testing and linting. See the
20+
:ref:`Dependency Groups specification <dependency-groups>`.
21+
1822
- The ``[tool]`` table has tool-specific subtables, e.g., ``[tool.hatch]``,
1923
``[tool.black]``, ``[tool.mypy]``. We only touch upon this table here because
2024
its contents are defined by each tool. Consult the particular tool's

‎source/specifications/pyproject-toml.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
The ``pyproject.toml`` file acts as a configuration file for packaging-related
1515
tools (as well as other tools).
1616

17-
The ``pyproject.toml`` file is written in `TOML <https://toml.io>`_. Three
17+
The ``pyproject.toml`` file is written in `TOML <https://toml.io>`_. Four
1818
tables are currently specified, namely
1919
:ref:`[build-system] <pyproject-build-system-table>`,
20-
:ref:`[project] <pyproject-project-table>` and
20+
:ref:`[project] <pyproject-project-table>`,
21+
:ref:`[dependency-groups] <dependency-groups>` and
2122
:ref:`[tool] <pyproject-tool-table>`. Other tables are reserved for future
2223
use (tool-specific configuration should use the ``[tool]`` table).
2324

0 commit comments

Comments
 (0)