Skip to content

RFE: Prefer TOML-native configuration over legaci INI #3402

Open
@hroncok

Description

@hroncok

What's the problem this feature will solve?

  • I want old tox versions to know I need tox >= 4.21
  • I want to use TOML-native configuration

If I have this:

[tool.tox]
requires = ["tox>=4.21"]
env_list = ["3.13", "3.12", "type", "doc"]
...

The old tox does not read it and ignores it.

If I change it like this:

[tool.tox]
legacy_tox_ini = """
    [tox]
    min_version = 4.21
"""
env_list = ["3.13", "3.12", "type", "doc"]
...

The old tox reads it and updates tox in the provision venv.
However, the TOML-native configuration is ignored by the new tox.

Describe the solution you'd like

I believe this could be solved if the new tox preferred the TOML-native configuration over legacy_tox_ini if both exist.

Alternative Solutions

I could stick with legacy_tox_ini unless I know all environments are fully updated to tox > 4.21.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.level:easyrought estimate that this might be quite easy to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions