formelsammlung.env_exe_runner module

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

Call given tool from given tox or nox env considering OS.

Parameters
  • runner (str) – ‘nox’ or ‘tox’

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

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

  • 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.env_exe_runner.cli_caller()[source]

Warp env_exe_runner to be callable by cli.

Script to call executables in tox/nox envs considering OS.

The script takes two mandatory arguments:

  1. The runner managing the env: tox or nox.

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

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

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

Return type

int

Returns

Exit code from env_exe_runner