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

Function tox_add_option

src/tox/provision.py:33–54  ·  view source on GitHub ↗
(parser: ArgumentParser)

Source from the content-addressed store, hash-verified

31
32@impl
33def tox_add_option(parser: ArgumentParser) -> None:
34 parser.add_argument(
35 "--no-provision",
36 default=False,
37 const=True,
38 nargs="?",
39 metavar="REQ_JSON",
40 help="do not perform provision, but fail and if a path was provided write provision metadata as JSON to it",
41 )
42 parser.add_argument(
43 "--no-recreate-provision",
44 dest="no_recreate_provision",
45 help="if recreate is set do not recreate provision tox environment",
46 action="store_true",
47 )
48 parser.add_argument(
49 "-r",
50 "--recreate",
51 dest="recreate",
52 help="recreate the tox environments",
53 action="store_true",
54 )
55
56
57def provision(state: State) -> int | bool:

Callers

nothing calls this directly

Calls 1

add_argumentMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…