MCPcopy
hub / github.com/tox-dev/tox / tox_add_option

Function tox_add_option

src/tox/session/cmd/devenv.py:20–25  ·  view source on GitHub ↗
(parser: ToxParser)

Source from the content-addressed store, hash-verified

18
19@impl
20def tox_add_option(parser: ToxParser) -> None:
21 help_msg = "sets up a development environment at ENVDIR based on the tox configuration specified "
22 our = parser.add_command("devenv", ["d"], help_msg, devenv)
23 our.add_argument("devenv_path", metavar="path", default=Path("venv"), nargs="?", type=Path)
24 register_env_select_flags(our, default=CliEnv("py"), multiple=False)
25 env_run_create_flags(our, mode="devenv")
26
27
28def devenv(state: State) -> int:

Callers

nothing calls this directly

Calls 5

CliEnvClass · 0.90
env_run_create_flagsFunction · 0.90
add_commandMethod · 0.80
add_argumentMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…