Skip to content

Env name with dot in TOML config #3590

@lg8080

Description

@lg8080

Issue

Here is a sample pyproject.toml.

[tool.tox.env."py3.11"]
description = "tox test"

I would expect the output from tox list to include the line py3.11 -> tox test. Instead, the line is py3.11 -> [no description]. This problem seems to be caused by the dot in "py3.11".

Environment

Output of pip list of the host Python, where tox is installed
Package       Version
------------- -------
cachetools    6.1.0
chardet       5.2.0
colorama      0.4.6
distlib       0.4.0
filelock      3.19.1
packaging     25.0
pip           25.2
platformdirs  4.3.8
pluggy        1.6.0
pyproject-api 1.9.1
setuptools    68.2.2
tox           4.28.4
virtualenv    20.34.0

Minimal example

See above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions