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
Problem
When a given configuration is malformed (: must be used instead of =) like the following example (#174)
python =
3.7 = py37
3.8 = py38
...
tox-gh-actions reports user-unfriendly error like
return {k: StrConvert.to_env_list(v).envs for k, v in parse_dict(value).items()}
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/tox_gh_actions/plugin.py", line 264, in parse_dict
return dict((k.strip(), v.strip()) for k, v in pairs)
File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/tox_gh_actions/plugin.py", line 264, in <genexpr>
return dict((k.strip(), v.strip()) for k, v in pairs)
ValueError: not enough values to unpack (expected 2, got 1)
Error: Process completed with exit code 1.
Idea
It's better to detect malformed configurations and show user-friendly error messages instead.
The text was updated successfully, but these errors were encountered:
I agree on reporting errors in a user-friendly manner.
The syntax, as shown off by your example, might be good to revise, though. = seems to work out better than : for Tox. Please see tox-dev/tox#3014 for some background.
Problem
When a given configuration is malformed (
:
must be used instead of=
) like the following example (#174)tox-gh-actions reports user-unfriendly error like
Idea
It's better to detect malformed configurations and show user-friendly error messages instead.
The text was updated successfully, but these errors were encountered: