You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Run uv commands from root to use pyproject.toml
Update Makefile to run uv commands from the repository root where the
pyproject.toml is located, rather than from sdk/python. This ensures
uv can properly find project dependencies and configuration.
Changes:
- Run ruff/mypy with paths from root (sdk/python/feast/, sdk/python/tests/)
- Run pytest with paths from root for consistency
- Remove --no-project flag as root pyproject.toml is now used
This fixes CI failures where uv couldn't find the project configuration.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
build: protos build-docker ## Build protobufs and Docker images
56
56
57
57
format-python: ## Format Python code
58
-
cd${ROOT_DIR}/sdk/python &&uv run ruff check --fix feast/ tests/
59
-
cd${ROOT_DIR}/sdk/python &&uv run ruff format feast/ tests/
58
+
uv run ruff check --fix sdk/python/feast/ sdk/python/tests/
59
+
uv run ruff format sdk/python/feast/ sdk/python/tests/
60
60
61
61
lint-python: ## Lint Python code
62
-
cd${ROOT_DIR}/sdk/python &&uv run ruff check feast/ tests/
63
-
cd${ROOT_DIR}/sdk/python&& uv run mypy feast
62
+
uv run ruff check sdk/python/feast/ sdk/python/tests/
63
+
cd${ROOT_DIR}/sdk/python; uv run mypy feast
64
64
65
65
# New combined target
66
66
precommit-check: format-python lint-python ## Run all precommit checks
@@ -74,7 +74,7 @@ install-precommit: ## Install precommit hooks (runs on commit, not push)
74
74
75
75
# Manual full type check
76
76
mypy-full: ## Full MyPy type checking with all files
77
-
cd${ROOT_DIR}/sdk/python&& uv run mypy feast tests
77
+
cd${ROOT_DIR}/sdk/python; uv run mypy feast tests
78
78
79
79
# Run precommit on all files
80
80
precommit-all: ## Run all precommit hooks on all files
@@ -172,33 +172,33 @@ benchmark-python-local: ## Run integration + benchmark tests for Python (local d
172
172
##@ Tests
173
173
174
174
test-python-unit: ## Run Python unit tests (use pattern=<pattern> to filter tests, e.g., pattern=milvus, pattern=test_online_retrieval.py, pattern=test_online_retrieval.py::test_get_online_features_milvus)
0 commit comments