Skip to content

The agent engineering platform.

create mypy cache dir if it doesn't exist (#14579)

Bob Lina019183a01a4
diff --git a/libs/community/Makefile b/libs/community/Makefile
index 203c028e3e..900deed91a 100644
--- a/libs/community/Makefile
+++ b/libs/community/Makefile
@@ -41,7 +41,7 @@ lint lint_diff lint_package lint_tests:
poetry run ruff .
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff format $(PYTHON_FILES) --diff
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff --select I $(PYTHON_FILES)
- [ "$(PYTHON_FILES)" = "" ] || mkdir $(MYPY_CACHE) || poetry run mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
+ [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) || poetry run mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
format format_diff:
poetry run ruff format $(PYTHON_FILES)
diff --git a/libs/experimental/Makefile b/libs/experimental/Makefile
index 623658354c..7bc3abbf63 100644
--- a/libs/experimental/Makefile
+++ b/libs/experimental/Makefile
@@ -42,7 +42,7 @@ lint lint_diff lint_package lint_tests:
poetry run ruff .
poetry run ruff format $(PYTHON_FILES) --diff
poetry run ruff --select I $(PYTHON_FILES)
- mkdir $(MYPY_CACHE); poetry run mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
+ mkdir -p $(MYPY_CACHE); poetry run mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
format format_diff:
poetry run ruff format $(PYTHON_FILES)