Skip to content

Replace large EnumAction class with simpler logic#511

Merged
gaborbernat merged 2 commits intotox-dev:mainfrom
kemzeb:refactor/warning
Oct 8, 2025
Merged

Replace large EnumAction class with simpler logic#511
gaborbernat merged 2 commits intotox-dev:mainfrom
kemzeb:refactor/warning

Conversation

@kemzeb
Copy link
Copy Markdown
Collaborator

@kemzeb kemzeb commented Oct 8, 2025

These changes make setting --warn easier to reason about without the need for the more complex EnumAction class.

The only downside is the duplication of the warning type strings in the CLI module, but I believe this is fine as I do not see a reason for adding more warning types anytime soon.

@gaborbernat gaborbernat merged commit f234e76 into tox-dev:main Oct 8, 2025
12 checks passed
@kemzeb kemzeb deleted the refactor/warning branch October 9, 2025 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants