diff --git a/libs/core/Makefile b/libs/core/Makefile index 44b334d7998..f7ca32a850d 100644 --- a/libs/core/Makefile +++ b/libs/core/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests test_watch integration_tests help extended_tests check_version +.PHONY: all format lint type test tests test_watch integration_tests help extended_tests check_version # Default target executed when no arguments are given to make. all: help @@ -59,6 +59,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -74,6 +77,7 @@ help: @echo '----' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'check_version - validate version consistency' @echo 'test - run unit tests' @echo 'tests - run unit tests' diff --git a/libs/langchain/Makefile b/libs/langchain/Makefile index 10168d07bc8..2673e08f613 100644 --- a/libs/langchain/Makefile +++ b/libs/langchain/Makefile @@ -1,4 +1,4 @@ -.PHONY: all coverage test tests extended_tests test_watch test_watch_extended integration_tests check_imports lint format lint_diff format_diff lint_package lint_tests help +.PHONY: all coverage test tests extended_tests test_watch test_watch_extended integration_tests check_imports lint format type lint_diff format_diff lint_package lint_tests help # Default target executed when no arguments are given to make. all: help @@ -58,6 +58,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -71,6 +74,7 @@ help: @echo '-- LINTING --' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo '-- TESTS --' @echo 'coverage - run unit tests and generate coverage report' @echo 'test - run unit tests' diff --git a/libs/langchain_v1/Makefile b/libs/langchain_v1/Makefile index 5e22daeefe0..e7327247e43 100644 --- a/libs/langchain_v1/Makefile +++ b/libs/langchain_v1/Makefile @@ -1,4 +1,4 @@ -.PHONY: all start_services stop_services coverage coverage_agents test test_fast extended_tests test_watch test_watch_extended integration_tests check_imports check_version lint format lint_diff format_diff lint_package lint_tests help +.PHONY: all start_services stop_services coverage coverage_agents test test_fast extended_tests test_watch test_watch_extended integration_tests check_imports check_version lint format type lint_diff format_diff lint_package lint_tests help # Default target executed when no arguments are given to make. all: help @@ -90,6 +90,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -103,6 +106,7 @@ help: @echo '-- LINTING --' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'check_version - validate version consistency' @echo '-- TESTS --' @echo 'coverage - run unit tests and generate coverage report' diff --git a/libs/model-profiles/Makefile b/libs/model-profiles/Makefile index 8be80b8d209..29988f3fc80 100644 --- a/libs/model-profiles/Makefile +++ b/libs/model-profiles/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -43,6 +43,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -59,6 +62,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/anthropic/Makefile b/libs/partners/anthropic/Makefile index 6226e95756a..f3fbf4f7a28 100644 --- a/libs/partners/anthropic/Makefile +++ b/libs/partners/anthropic/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -41,6 +41,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -57,6 +60,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/chroma/Makefile b/libs/partners/chroma/Makefile index ab55996c35a..00b9693161f 100644 --- a/libs/partners/chroma/Makefile +++ b/libs/partners/chroma/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -55,6 +58,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/deepseek/Makefile b/libs/partners/deepseek/Makefile index 9ca90660a35..caf392bb52a 100644 --- a/libs/partners/deepseek/Makefile +++ b/libs/partners/deepseek/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -40,6 +40,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -56,6 +59,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/exa/Makefile b/libs/partners/exa/Makefile index c5e8e01c68c..23e804ad064 100644 --- a/libs/partners/exa/Makefile +++ b/libs/partners/exa/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -55,6 +58,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/fireworks/Makefile b/libs/partners/fireworks/Makefile index af7366d5f59..f71fa1cb802 100644 --- a/libs/partners/fireworks/Makefile +++ b/libs/partners/fireworks/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -38,6 +38,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -54,6 +57,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/groq/Makefile b/libs/partners/groq/Makefile index d9a46b85aca..cd552db75ec 100644 --- a/libs/partners/groq/Makefile +++ b/libs/partners/groq/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -55,6 +58,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/huggingface/Makefile b/libs/partners/huggingface/Makefile index c0d50c9a80f..99a7f06c6dc 100644 --- a/libs/partners/huggingface/Makefile +++ b/libs/partners/huggingface/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -55,6 +58,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/mistralai/Makefile b/libs/partners/mistralai/Makefile index d5cad99af9e..13829450571 100644 --- a/libs/partners/mistralai/Makefile +++ b/libs/partners/mistralai/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -41,6 +41,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -57,6 +60,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/nomic/Makefile b/libs/partners/nomic/Makefile index 15bc08b5a6f..3908c83ea9e 100644 --- a/libs/partners/nomic/Makefile +++ b/libs/partners/nomic/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -55,6 +58,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/ollama/Makefile b/libs/partners/ollama/Makefile index 89d253dda57..1ed1de0cfcb 100644 --- a/libs/partners/ollama/Makefile +++ b/libs/partners/ollama/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -48,6 +48,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -64,6 +67,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/openai/Makefile b/libs/partners/openai/Makefile index 85504a0e371..6a82e2e5029 100644 --- a/libs/partners/openai/Makefile +++ b/libs/partners/openai/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -52,6 +52,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -68,6 +71,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/perplexity/Makefile b/libs/partners/perplexity/Makefile index 99c246cc602..2d5a2cba711 100644 --- a/libs/partners/perplexity/Makefile +++ b/libs/partners/perplexity/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -38,6 +38,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -54,6 +57,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/prompty/Makefile b/libs/partners/prompty/Makefile index bb1340b5477..5aec2958e80 100644 --- a/libs/partners/prompty/Makefile +++ b/libs/partners/prompty/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -37,6 +37,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -53,6 +56,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/partners/qdrant/Makefile b/libs/partners/qdrant/Makefile index aa68c60abc1..be4b3276d66 100644 --- a/libs/partners/qdrant/Makefile +++ b/libs/partners/qdrant/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_test integration_tests help +.PHONY: all format lint type test tests integration_test integration_tests help # Default target executed when no arguments are given to make. all: help @@ -40,6 +40,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -56,6 +59,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'lint_tests - run linters on tests' @echo 'test - run unit tests' @echo 'tests - run unit tests' diff --git a/libs/partners/xai/Makefile b/libs/partners/xai/Makefile index 060380d435e..8b12f385761 100644 --- a/libs/partners/xai/Makefile +++ b/libs/partners/xai/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -38,6 +38,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -54,6 +57,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/standard-tests/Makefile b/libs/standard-tests/Makefile index d2a41656457..c937d5436f8 100644 --- a/libs/standard-tests/Makefile +++ b/libs/standard-tests/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests integration_tests help extended_tests +.PHONY: all format lint type test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -37,6 +37,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -53,6 +56,7 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file' diff --git a/libs/text-splitters/Makefile b/libs/text-splitters/Makefile index 1c9ac843a6b..4eec074f89b 100644 --- a/libs/text-splitters/Makefile +++ b/libs/text-splitters/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint test tests test_watch integration_tests help extended_tests +.PHONY: all format lint type test tests test_watch integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -47,6 +47,9 @@ lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff [ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) +type: + mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + format format_diff: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES) @@ -59,6 +62,7 @@ help: @echo '----' @echo 'format - run code formatters' @echo 'lint - run linters' + @echo 'type - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file'