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
My plugin tox-docker could benefit from being able to discover all configuration sections and/or to get a list of all testenvs from the Config.
tox-docker starts docker containers as configured by each testenv; the testenv references another section (eg [docker:nginx] by way of saying docker=nginx in the testenv). In order to discover all configuration, I need to enumerate all testenvs or all sections (and filter the list to docker:* sections).
It would be more explicit to have eg. config.get_test_envs() that returns either all testenvs, or better yet, the specific testenvs that will be run (eg due to setting -e on the commandline, or the envlist, etc).
The text was updated successfully, but these errors were encountered:
For the new configuration section: So there's some complexity we need to tackle here: different configu2ration sources. Today this is mostly INI file only. However, going ahead we'll have other files, such as the pyproject.toml. For that file, it's not allowed to reuse the docker namespace directly, but instead, https://www.python.org/dev/peps/pep-0518/#tool-table governs that. To follow that ad litera you'll likely want to add the docker sections under tool.tox-docker.docker-nginx, and tool.tox-docker.docker-db. The system should hideaway this from you somehow.
My plugin tox-docker could benefit from being able to discover all configuration sections and/or to get a list of all testenvs from the
Config
.tox-docker starts docker containers as configured by each testenv; the testenv references another section (eg
[docker:nginx]
by way of sayingdocker=nginx
in the testenv). In order to discover all configuration, I need to enumerate all testenvs or all sections (and filter the list todocker:*
sections).I'm currently doing the former with:
It would be more explicit to have eg.
config.get_test_envs()
that returns either all testenvs, or better yet, the specific testenvs that will be run (eg due to setting-e
on the commandline, or theenvlist
, etc).The text was updated successfully, but these errors were encountered: