Skip to content

πŸ› fix(env): report unknown labels passed to -m - #4478

Merged
gaborbernat merged 3 commits into
tox-dev:mainfrom
chiruu12:fix/unknown-label
Nov 28, 2026
Merged

gaborbernat merged 3 commits into
tox-dev:mainfrom
chiruu12:fix/unknown-label

Conversation

@chiruu12

@chiruu12 chiruu12 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

tox -m statc (or TOX_LABELS=statc) selected nothing and exited 0. Now:

ROOT: HandledError| provided labels not found in configuration file:
statc - did you mean static?

The check is skipped when an environment is unavailable (its runner plugin is missing), since tox cannot read that environment's labels.

Copilot AI balanced review requested due to automatic review settings November 27, 2026 21:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

pre-commit-ci Bot and others added 2 commits November 27, 2026 21:17
An environment whose runner plugin is missing never registers its labels,
so a label only it carries was reported as not found. Skip the check when
any environment is unavailable.
@gaborbernat
gaborbernat merged commit e019df0 into tox-dev:main Nov 28, 2026
30 checks passed
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.

3 participants