Skip to content

Commit 85c94e5

Browse files
committed
fixup! Add --assert-config option
1 parent 4956622 commit 85c94e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tox_current_env/hooks4.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ def tox_add_core_config(core_conf, state):
7979
opt = state.conf.options
8080

8181
if opt.assert_config and not state.conf.src_path.exists():
82-
raise LookupError("tox configuration not found.")
82+
raise LookupError(
83+
"tox configuration not found. "
84+
"To use tox, please ensure tox configuration is located in current directory "
85+
"(in tox.ini, setup.cfg, pyproject.toml, or tox.toml). "
86+
"See https://tox.wiki/en/latest/config.html for details."
87+
)
8388

8489
if opt.current_env or opt.print_deps_to or opt.print_extras_to or opt.print_dependency_groups_to:
8590
# We do not want to install the main package.

0 commit comments

Comments
 (0)