Skip to content

Add option to append overrides #2738

@ziima

Description

@ziima

What's the problem this feature will solve?

--override option is nice for changes, but currently it only replaces the config file option. But multiple options are list-like and it would be much better to have an option to append to the list without a need to copy the whole contents.

Describe the solution you'd like

I'd like to have an option to provide additions to the config lists, such as deps, passenv, setenv, etc.

Example

I'd like to add ipdb to the testenv to debug the problem like tox --override testenv.deps=ipdb run -e py310, but it also drops all the deps from the testenv config and tests crashes completely unless I explicitly set deps to all current deps and the ipdb.

Also I'd like to be able to pass such option to user level config so I can have it in all testenvs.

Alternative Solutions

I have working plugin https://pypi.org/project/tox-ipdb-plugin/ for the tox3, but it seems it can almost be replaced only by a user config. And separate plugin would be needed if other changes would be needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions