tox
tox configuration for automating Python testing and task management
| Type | object |
|---|---|
| File match |
tox.toml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/tox/latest.json |
| Source | https://raw.githubusercontent.com/tox-dev/tox/main/src/tox/tox.schema.json |
Validate with Lintel
npx @lintel/lintel check
tox configuration file (tox.toml or [tool.tox] in pyproject.toml)
Properties
the root directory (where the configuration file is found)
the root directory (where the configuration file is found)
working directory
working directory
a folder for temporary files (is not cleaned at start)
define environments to automatically run
define environments to automatically run
inherit missing keys from these sections
Define the minimal tox version required to run
Define the minimal tox version required to run
Name of the virtual environment used to provision a tox.
Name of the virtual environment used to provision a tox.
core labels
do not raise error if the environment name conflicts with base python
do not raise error if the environment name conflicts with base python
skip running missing interpreters
is there any packaging involved in this project
is there any packaging involved in this project
tox environment used to package
tox environment used to package
indicates where the packaging root file exists (historically setup.py file or pyproject.toml now)
indicates where the packaging root file exists (historically setup.py file or pyproject.toml now)
base configuration for run environments
62 nested properties
environment variables to set when running commands in the tox environment
environment variables to set when running commands in the tox environment
inherit missing keys from these sections
the tox execute used to evaluate this environment
description attached to the tox environment
tox environments that this environment depends on (must be run after those)
labels attached to the tox environment
directory assigned to the tox environment
directory assigned to the tox environment
a folder that is always reset at the start of the run
a folder that is always reset at the start of the run
a folder for logging where tox will put logs of tool invocation
a folder for logging where tox will put logs of tool invocation
timeout to allow process to exit before sending SIGINT
timeout before sending SIGTERM after SIGINT
timeout before sending SIGKILL after SIGTERM
run on platforms that match this regular expression (empty means any platform)
environment variables to pass on to the tox environment
environment variables to pass on to the tox environment
environment variable patterns to exclude after pass_env glob expansion
if set to True the content of the output will always be shown when running in parallel mode
always recreate virtual environment if this option is true, otherwise leave it up to tox
external command glob to allow calling
command used to list installed packages
install the latest available pre-release (alpha/beta/rc) of dependencies without a specified version
command used to install packages
constraints to apply to installed python dependencies
If true, apply constraints during install_package_deps.
Use the exact versions of installed deps as constraints, otherwise use the listed deps.
the commands to be called before testing
the commands to be called for testing
the commands to be called after testing
run commands_post even after interrupt (SIGINT), allow second interrupt to cancel
commands to run before the environment is removed during recreation (e.g. cache cleanup)
change to this working directory when executing the test command
change to this working directory when executing the test command
if True rewrite relative posargs paths from cwd to change_dir
when executing the commands keep going even if a sub-command exits with non-zero exit code
number of times to retry a failed command (0 means no retries)
if set to true a failing result of this testenv will not make tox fail (instead just warn)
if set to true, tox will stop executing remaining environments when this environment fails
fallback python interpreter used when no factor or explicit base_python is defined
file(s) containing the Python version to use (e.g. .python-version), first one found wins; used when base_python is not explicitly set and the env name has no Python factor
environment identifier for python, first one found wins
environment identifier for python, first one found wins
python dependencies with optional version specifiers, as specified by PEP-440
dependency groups to install of the target package
extras to install of the target package
PEP 751 pylock.toml lock file path to install locked dependencies from
commands to execute after setup (deps and package install) but before test commands
override core skip_missing_interpreters for this environment
create virtual environments that also have access to globally installed packages.
create virtual environments that also have access to globally installed packages.
force virtualenv to always copy rather than symlink
force virtualenv to always copy rather than symlink
true if you want virtualenv to upgrade pip/wheel/setuptools to the latest version
PEP 440 version spec for virtualenv (e.g. virtualenv<20.22.0). When set, tox bootstraps this version in an isolated environment and runs it via subprocess, enabling Python versions incompatible with the installed virtualenv.
skip installation
use develop mode
use develop mode
package installation mode - wheel | sdist | sdist-wheel | editable | editable-legacy | deps-only | skip | external
tox environment used to package
base configuration for run environments
62 nested properties
environment variables to set when running commands in the tox environment
environment variables to set when running commands in the tox environment
inherit missing keys from these sections
the tox execute used to evaluate this environment
description attached to the tox environment
tox environments that this environment depends on (must be run after those)
labels attached to the tox environment
directory assigned to the tox environment
directory assigned to the tox environment
a folder that is always reset at the start of the run
a folder that is always reset at the start of the run
a folder for logging where tox will put logs of tool invocation
a folder for logging where tox will put logs of tool invocation
timeout to allow process to exit before sending SIGINT
timeout before sending SIGTERM after SIGINT
timeout before sending SIGKILL after SIGTERM
run on platforms that match this regular expression (empty means any platform)
environment variables to pass on to the tox environment
environment variables to pass on to the tox environment
environment variable patterns to exclude after pass_env glob expansion
if set to True the content of the output will always be shown when running in parallel mode
always recreate virtual environment if this option is true, otherwise leave it up to tox
external command glob to allow calling
command used to list installed packages
install the latest available pre-release (alpha/beta/rc) of dependencies without a specified version
command used to install packages
constraints to apply to installed python dependencies
If true, apply constraints during install_package_deps.
Use the exact versions of installed deps as constraints, otherwise use the listed deps.
the commands to be called before testing
the commands to be called for testing
the commands to be called after testing
run commands_post even after interrupt (SIGINT), allow second interrupt to cancel
commands to run before the environment is removed during recreation (e.g. cache cleanup)
change to this working directory when executing the test command
change to this working directory when executing the test command
if True rewrite relative posargs paths from cwd to change_dir
when executing the commands keep going even if a sub-command exits with non-zero exit code
number of times to retry a failed command (0 means no retries)
if set to true a failing result of this testenv will not make tox fail (instead just warn)
if set to true, tox will stop executing remaining environments when this environment fails
fallback python interpreter used when no factor or explicit base_python is defined
file(s) containing the Python version to use (e.g. .python-version), first one found wins; used when base_python is not explicitly set and the env name has no Python factor
environment identifier for python, first one found wins
environment identifier for python, first one found wins
python dependencies with optional version specifiers, as specified by PEP-440
dependency groups to install of the target package
extras to install of the target package
PEP 751 pylock.toml lock file path to install locked dependencies from
commands to execute after setup (deps and package install) but before test commands
override core skip_missing_interpreters for this environment
create virtual environments that also have access to globally installed packages.
create virtual environments that also have access to globally installed packages.
force virtualenv to always copy rather than symlink
force virtualenv to always copy rather than symlink
true if you want virtualenv to upgrade pip/wheel/setuptools to the latest version
PEP 440 version spec for virtualenv (e.g. virtualenv<20.22.0). When set, tox bootstraps this version in an isolated environment and runs it via subprocess, enabling Python versions incompatible with the installed virtualenv.
skip installation
use develop mode
use develop mode
package installation mode - wheel | sdist | sdist-wheel | editable | editable-legacy | deps-only | skip | external
tox environment used to package
per-environment overrides (keyed by environment name)
tox configuration in INI format embedded in a TOML file