formelsammlung.tox_env_exe_runner module

formelsammlung.tox_env_exe_runner.tox_env_exe_runner(tool, envs, tool_args=None)[source]

Call given tool from given tox env considering OS.

Parameters
  • tool (str) – Name of the executable to run.

  • envs (List[str]) – List of tox environments to search the tool in.

  • tool_args (Optional[List[str]]) – Arguments to give to the tool.

Return type

int

Returns

Exit code 127 if no executable is found or the exit code of the called cmd.

formelsammlung.tox_env_exe_runner.cli_caller()[source]

Warp tox_env_exe_runner to be callable by cli.

Script to call executables in tox envs considering OS.

The script takes two mandatory arguments:

  1. The executable to call like e.g. pylint.

  2. A string with comma separated tox envs to check for the executable. The envs are checked in given order.

All other arguments after are passed to the tool on call.

Return type

int

Returns

Exit code from tox_env_exe_runner