You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No "did you mean" suggestion when only some factors of an -e name are wrong #4458
When an environment passed with -e is not found, tox suggests a close name, but only if every factor is misspelled. If any factor is valid, no suggestion is shown.
$ tox r -e alpha-p312,alph-p312ROOT: HandledError| provided environments not found in configuration file:alpha-p312alph-p312 - did you mean alpha-py312?
alph-p312 (both factors wrong) gets a suggestion, but alpha-p312 (one factor wrong) gets nothing. The same happens for environments that are only defined as sections, for example [testenv:beta-lint] with -e beta-lnt.
Cause
In EnvSelector._invalid_env_suggestion (src/tox/session/env_select.py), valid factors keep their initial None, and a factor whose closest match is itself is also set to None. Any None drops the whole suggestion.
Activity