Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn or error on invalid extras #3394

Open
eaubin opened this issue Oct 7, 2024 · 2 comments
Open

Warn or error on invalid extras #3394

eaubin opened this issue Oct 7, 2024 · 2 comments
Labels
enhancement help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted.

Comments

@eaubin
Copy link

eaubin commented Oct 7, 2024

If an extra is misspelled or missing, tox should give an error or warning. For example when running tox -e badextras with

[testenv:badextras]
extras = missing
commands = python --version

I came across this when I was debugging a project with an env like

[testenv:docs]
...
extras = build_docs

where the project.optional-dependencies were not getting installed (the underscore is problematic #2655). A warning or error would have been very helpful figuring out what was happening.

@gaborbernat
Copy link
Member

PR welcome 👍

@gaborbernat gaborbernat added the help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted. label Oct 7, 2024
@webknjaz
Copy link
Contributor

Duplicate of #1113?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help:wanted Issues that have been acknowledged, a solution determined and a PR might likely be accepted.
Projects
None yet
Development

No branches or pull requests

3 participants