diff --git a/libs/community/Makefile b/libs/community/Makefile index 203c028e3ee..900deed91ab 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 623658354c2..7bc3abbf636 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)