From 62956b01ff43c23123703c9a3456c077933df0f8 Mon Sep 17 00:00:00 2001 From: Harshit Sharma <66710144+harshitethic@users.noreply.github.com> Date: Sun, 27 Sep 2026 02:14:23 +0530 Subject: [PATCH 1/2] Document the dependency-groups table --- source/specifications/pyproject-toml.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/specifications/pyproject-toml.rst b/source/specifications/pyproject-toml.rst index 314dcc7b48..e395f54b22 100644 --- a/source/specifications/pyproject-toml.rst +++ b/source/specifications/pyproject-toml.rst @@ -14,10 +14,11 @@ The ``pyproject.toml`` file acts as a configuration file for packaging-related tools (as well as other tools). -The ``pyproject.toml`` file is written in `TOML `_. Three +The ``pyproject.toml`` file is written in `TOML `_. Four tables are currently specified, namely :ref:`[build-system] `, -:ref:`[project] ` and +:ref:`[project] `, +:ref:`[dependency-groups] ` and :ref:`[tool] `. Other tables are reserved for future use (tool-specific configuration should use the ``[tool]`` table). From 7fb23eb2f2db2c03a2c5a5d568c9f6bb7361d9cc Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Thu, 5 Nov 2026 17:46:51 +0000 Subject: [PATCH 2/2] Document the dependency-groups table also in "writing pyproject.toml" This is the matching change to that made in the `pyprojec.toml` spec in the previous commit, which links to this page. --- source/guides/writing-pyproject-toml.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/guides/writing-pyproject-toml.rst b/source/guides/writing-pyproject-toml.rst index fda90315bd..b0532c1313 100644 --- a/source/guides/writing-pyproject-toml.rst +++ b/source/guides/writing-pyproject-toml.rst @@ -6,7 +6,7 @@ Writing your ``pyproject.toml`` ``pyproject.toml`` is a configuration file used by packaging tools, as well as other tools such as linters, type checkers, etc. There are -three possible TOML tables in this file. +four possible TOML tables in this file. - The ``[build-system]`` table is **strongly recommended**. It allows you to declare which :term:`build backend` you use and which other @@ -15,6 +15,10 @@ three possible TOML tables in this file. - The ``[project]`` table is the format that most build backends use to specify your project's basic metadata, such as the dependencies, your name, etc. +- The ``[dependency-groups]`` table specifies dependencies for development tasks + such as testing and linting. See the + :ref:`Dependency Groups specification `. + - The ``[tool]`` table has tool-specific subtables, e.g., ``[tool.hatch]``, ``[tool.black]``, ``[tool.mypy]``. We only touch upon this table here because its contents are defined by each tool. Consult the particular tool's