Skip to content

Prefer TOML-native config over legacy_tox_ini in pyproject.toml#3776

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
rahuldevikar:users/rahuldevikar/fix-toml-priority-3402
Feb 19, 2026
Merged

Prefer TOML-native config over legacy_tox_ini in pyproject.toml#3776
gaborbernat merged 1 commit intotox-dev:mainfrom
rahuldevikar:users/rahuldevikar/fix-toml-priority-3402

Conversation

@rahuldevikar
Copy link
Copy Markdown
Collaborator

Swap the discovery priority of TomlPyProject and LegacyToml so that native TOML configuration ([tool.tox]) is preferred over legacy_tox_ini when both are present in pyproject.toml. This allows users to include a legacy_tox_ini section with min_version for backward compatibility with older tox versions while using native TOML config for newer ones.

Fixes #3402

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

@rahuldevikar rahuldevikar force-pushed the users/rahuldevikar/fix-toml-priority-3402 branch from de772cb to b092b0c Compare February 19, 2026 07:46
@rahuldevikar rahuldevikar marked this pull request as ready for review February 19, 2026 08:06
@rahuldevikar
Copy link
Copy Markdown
Collaborator Author

checks on macos is waiting for sometime even though rest of the tests are completed.

@rahuldevikar rahuldevikar force-pushed the users/rahuldevikar/fix-toml-priority-3402 branch from b092b0c to f8dfdab Compare February 19, 2026 08:20
@gaborbernat gaborbernat merged commit 95d63fb into tox-dev:main Feb 19, 2026
52 of 53 checks passed
@hroncok
Copy link
Copy Markdown
Contributor

hroncok commented Feb 19, 2026

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFE: Prefer TOML-native configuration over legaci INI

3 participants