Skip to content

Commit 89992ea

Browse files
committed
WIP abort without tox config
1 parent 94c7ff8 commit 89992ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tox_current_env/hooks4.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def tox_add_option(parser):
6161
@impl
6262
def tox_add_core_config(core_conf, state):
6363
opt = state.conf.options
64+
if (opt.print_deps_to or opt.print_extras_to) and not core_conf.loaders:
65+
raise RuntimeError(
66+
"--print-deps-to and/or --print-extras-to cannot be used without tox config."
67+
)
6468

6569
if opt.current_env or opt.print_deps_to or opt.print_extras_to:
6670
# We do not want to install the main package.

0 commit comments

Comments
 (0)