Skip to content

Commit a23152e

Browse files
fix: Use --no-project for mypy to run from sdk/python
MyPy needs to run from sdk/python directory with its local pyproject.toml config, so use uv run --no-project to avoid requiring a [project] table. Ruff commands still run from root to use the main pyproject.toml. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 031a978 commit a23152e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ format-python: ## Format Python code
6060

6161
lint-python: ## Lint Python code
6262
uv run ruff check sdk/python/feast/ sdk/python/tests/
63-
cd ${ROOT_DIR}/sdk/python; uv run mypy feast
63+
cd ${ROOT_DIR}/sdk/python && uv run --no-project mypy feast
6464

6565
# New combined target
6666
precommit-check: format-python lint-python ## Run all precommit checks
@@ -74,7 +74,7 @@ install-precommit: ## Install precommit hooks (runs on commit, not push)
7474

7575
# Manual full type check
7676
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 --no-project mypy feast tests
7878

7979
# Run precommit on all files
8080
precommit-all: ## Run all precommit hooks on all files

0 commit comments

Comments
 (0)