Skip to content

file| active in add_testenv_attribute for type "dict" #1694

Closed
@jayvdb

Description

@jayvdb

It looks like the new file| from #1668 is not restricted to arg type dict_setenv, but is also allowed in venv args type="dict".

I've done a fairly extensive search for plugins using type="dict" and come up blank, so this is probably not impacting real users, and it only adds new syntax so almost certainly doesnt break any existing users. I am more concerned about whether it should be added there, because after a few releases it becomes a breaking change to remove it. Better to remove it now if it doesnt belong there.

That PR also adjusted variables in _getdict to be more about envvars when it could be any type of "dict", albeit having a env-var-like syntax of "name = value".

It probably isnt hard to disable file| for type="dict", but it doesnt seem too harmful to keep it.

I notice that https://tox.readthedocs.io/en/latest/plugins.html#tox.config.Parser.add_testenv_attribute doesnt mention allowable types "float", "dict", "basepython", "space-separated-list", and "env-list". (I am guessing that dict_setenv is intentionally internal-only, and shouldnt be used by plugins).

If file| support is kept for "dict", that would be the area to document it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:normalaffects many people or has quite an impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions