Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/changelog/3626.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add Python 3.14 and 3.14t to config examples
- by :user:`cclauss`
22 changes: 13 additions & 9 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ For example:
requires =
tox >= 4.20
env_list =
3.14t
3.14
3.13
3.12
type
Expand Down Expand Up @@ -78,6 +80,8 @@ This configuration file uses:
requires =
tox >= 4.0
env_list =
3.14t
3.14
3.13
3.12
type
Expand Down Expand Up @@ -135,15 +139,15 @@ We support native TOML configuration via the ``pyproject.toml`` files ``tool.tox

[tool.tox]
requires = ["tox>=4.19"]
env_list = ["3.13", "3.12", "type"]
env_list = ["3.14t", "3.14", "3.13", "3.12", "type"]

[tool.tox.env_run_base]
description = "Run test under {base_python}"
commands = [["pytest"]]

[tool.tox.env.type]
description = "run type check on code base"
deps = ["mypy==1.11.2", "types-cachetools>=5.5.0.20240820", "types-chardet>=5.0.4.6"]
deps = ["mypy==1.18.2", "types-cachetools>=5.5.0.20240820", "types-chardet>=5.0.4.6"]
commands = [["mypy", "src{/}tox"], ["mypy", "tests"]]

``tox.toml``
Expand All @@ -157,15 +161,15 @@ For example:
.. code-block:: toml

requires = ["tox>=4.19"]
env_list = ["3.13", "3.12", "type"]
env_list = ["3.14t", "3.14", "3.13", "3.12", "type"]

[env_run_base]
description = "Run test under {base_python}"
commands = [["pytest"]]

[env.type]
description = "run type check on code base"
deps = ["mypy==1.11.2", "types-cachetools>=5.5.0.20240820", "types-chardet>=5.0.4.6"]
deps = ["mypy==1.18.2", "types-cachetools>=5.5.0.20240820", "types-chardet>=5.0.4.6"]
commands = [["mypy", "src{/}tox"], ["mypy", "tests"]]

.. _conf-core:
Expand Down Expand Up @@ -298,15 +302,15 @@ The following options are set in the ``[tox]`` section of ``tox.ini`` or the ``[
.. code-block:: toml

[tool.tox]
labels = { test = ["3.13", "3.12"], static = ["ruff", "mypy"] }
labels = { test = ["3.14t", "3.14", "3.13", "3.12"], static = ["ruff", "mypy"] }

.. tab:: INI

.. code-block:: ini

[tox]
labels =
test = 3.13, 3.12
test = 3.14t, 3.14, 3.13, 3.12
static = ruff, mypy

.. conf::
Expand Down Expand Up @@ -889,7 +893,7 @@ Python options
:constant:
:version_added: 4.0.10

Major.Minor version of the Python interpreter in the tox environment (e.g., ``3.13``).
Major.Minor version of the Python interpreter in the tox environment (e.g., ``3.14``).

.. conf::
:keys: py_impl
Expand All @@ -903,7 +907,7 @@ Python options
:constant:
:version_added: 4.26

``True`` if the Python interpreter in the tox environment is an experimental free-threaded CPython build,
``True`` if the Python interpreter in the tox environment is a free-threaded CPython build,
else ``False``.


Expand Down Expand Up @@ -1813,7 +1817,7 @@ specified, the value of DEFAULTS will be used instead. If DEFAULTS contains othe

Use a double ``--`` if you also want to pass options to an underlying test command, for example::

tox run -e 3.13 -- --opt1 ARG1
tox run -e 3.14 -- --opt1 ARG1

will make the ``--opt1 ARG1`` appear in all test commands where ``[]`` or ``{posargs}`` was specified. By default (see
``args_are_paths`` setting), ``tox`` rewrites each positional argument if it is a relative path and exists on the
Expand Down