From 94128650d4349e0ed033d26fdb5b32d4f3da1774 Mon Sep 17 00:00:00 2001 From: Tuan Tran Date: Fri, 23 Jan 2026 11:57:54 +0100 Subject: [PATCH] fix: resolve tox not found error when running make test from package directories The tox dependency group is defined in the workspace root's pyproject.toml, but uv run tox from package directories couldn't access it. This fix: - Syncs the workspace root with the tox dependency group to ensure tox is installed in the root's .venv - Runs tox directly from the root's .venv/bin/tox instead of using uv run, which allows it to find the correct tox.ini in the package directory while using the workspace-level tox installation This resolves the 'Failed to spawn: tox' error when running make test from individual package directories like packages/gooddata-sdk. JIRA: TRIVIAL risk: nonprod --- project_common.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project_common.mk b/project_common.mk index 8fdf539c4..ddf8abcd4 100644 --- a/project_common.mk +++ b/project_common.mk @@ -50,14 +50,14 @@ format-diff: .PHONY: mypy mypy: - uv run tox $(TOX_FLAGS) -e mypy + (cd $(ROOT_DIR); uv sync --group tox > /dev/null 2>&1) && $(ROOT_DIR)/.venv/bin/tox $(TOX_FLAGS) -e mypy .PHONY: types types: mypy .PHONY: test test: - uv run tox -v $(TOX_FLAGS) $(LOCAL_TEST_ENVS) $(LOCAL_ADD_ARGS) + (cd $(ROOT_DIR); uv sync --group tox > /dev/null 2>&1) && $(ROOT_DIR)/.venv/bin/tox -v $(TOX_FLAGS) $(LOCAL_TEST_ENVS) $(LOCAL_ADD_ARGS) .PHONY: test-ci test-ci: