From 8e4c433541a0636aad3eb3b3fc4013075cb5fb0e Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Wed, 4 Feb 2026 15:53:29 -0500 Subject: [PATCH] revert: "chore: add typing target in `Makefile`" (#35013) Reverts langchain-ai/langchain#35012 --- libs/core/Makefile | 7 ++----- libs/langchain/Makefile | 7 ++----- libs/langchain_v1/Makefile | 7 ++----- libs/model-profiles/Makefile | 7 ++----- libs/partners/anthropic/Makefile | 7 ++----- libs/partners/chroma/Makefile | 7 ++----- libs/partners/deepseek/Makefile | 7 ++----- libs/partners/exa/Makefile | 7 ++----- libs/partners/fireworks/Makefile | 7 ++----- libs/partners/groq/Makefile | 7 ++----- libs/partners/huggingface/Makefile | 7 ++----- libs/partners/mistralai/Makefile | 7 ++----- libs/partners/nomic/Makefile | 7 ++----- libs/partners/ollama/Makefile | 7 ++----- libs/partners/openai/Makefile | 7 ++----- libs/partners/perplexity/Makefile | 7 ++----- libs/partners/prompty/Makefile | 7 ++----- libs/partners/qdrant/Makefile | 7 ++----- libs/partners/xai/Makefile | 7 ++----- libs/standard-tests/Makefile | 7 ++----- libs/text-splitters/Makefile | 7 ++----- 21 files changed, 42 insertions(+), 105 deletions(-) diff --git a/libs/core/Makefile b/libs/core/Makefile index 2aed77e9638..44b334d7998 100644 --- a/libs/core/Makefile +++ b/libs/core/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests test_watch integration_tests help extended_tests check_version +.PHONY: all format lint test tests test_watch integration_tests help extended_tests check_version # Default target executed when no arguments are given to make. all: help @@ -57,9 +57,7 @@ lint lint_diff lint_package lint_tests: ./scripts/lint_imports.sh [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -76,7 +74,6 @@ help: @echo '----' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 c46cec1e7e0..10168d07bc8 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 typing 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 lint_diff format_diff lint_package lint_tests help # Default target executed when no arguments are given to make. all: help @@ -56,9 +56,7 @@ lint lint_diff lint_package lint_tests: ./scripts/lint_imports.sh [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -73,7 +71,6 @@ help: @echo '-- LINTING --' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 834640f2984..5e22daeefe0 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 typing 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 lint_diff format_diff lint_package lint_tests help # Default target executed when no arguments are given to make. all: help @@ -88,9 +88,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -105,7 +103,6 @@ help: @echo '-- LINTING --' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 ced664afdad..8be80b8d209 100644 --- a/libs/model-profiles/Makefile +++ b/libs/model-profiles/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -41,9 +41,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -61,7 +59,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 73a8f9f46a9..6226e95756a 100644 --- a/libs/partners/anthropic/Makefile +++ b/libs/partners/anthropic/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -39,9 +39,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -59,7 +57,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 af6e19bbc28..ab55996c35a 100644 --- a/libs/partners/chroma/Makefile +++ b/libs/partners/chroma/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -37,9 +37,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -57,7 +55,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 82bee5caa34..9ca90660a35 100644 --- a/libs/partners/deepseek/Makefile +++ b/libs/partners/deepseek/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -38,9 +38,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -58,7 +56,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 895d9ccec11..c5e8e01c68c 100644 --- a/libs/partners/exa/Makefile +++ b/libs/partners/exa/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -37,9 +37,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -57,7 +55,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 d028faf1b8b..af7366d5f59 100644 --- a/libs/partners/fireworks/Makefile +++ b/libs/partners/fireworks/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -36,9 +36,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -56,7 +54,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 f1fa8ef424f..d9a46b85aca 100644 --- a/libs/partners/groq/Makefile +++ b/libs/partners/groq/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -37,9 +37,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -57,7 +55,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 0c75357c70c..c0d50c9a80f 100644 --- a/libs/partners/huggingface/Makefile +++ b/libs/partners/huggingface/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -37,9 +37,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -57,7 +55,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 1e2e8c4cb87..d5cad99af9e 100644 --- a/libs/partners/mistralai/Makefile +++ b/libs/partners/mistralai/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -39,9 +39,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -59,7 +57,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 9a8000ab515..15bc08b5a6f 100644 --- a/libs/partners/nomic/Makefile +++ b/libs/partners/nomic/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -37,9 +37,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -57,7 +55,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 280c1f917c3..89d253dda57 100644 --- a/libs/partners/ollama/Makefile +++ b/libs/partners/ollama/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -46,9 +46,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -66,7 +64,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 630304a4539..85504a0e371 100644 --- a/libs/partners/openai/Makefile +++ b/libs/partners/openai/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -50,9 +50,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -70,7 +68,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 19a4a258339..99c246cc602 100644 --- a/libs/partners/perplexity/Makefile +++ b/libs/partners/perplexity/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -36,9 +36,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -56,7 +54,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 72d63d1856e..bb1340b5477 100644 --- a/libs/partners/prompty/Makefile +++ b/libs/partners/prompty/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -35,9 +35,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -55,7 +53,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 a3a5788ad92..aa68c60abc1 100644 --- a/libs/partners/qdrant/Makefile +++ b/libs/partners/qdrant/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_test integration_tests help +.PHONY: all format lint test tests integration_test integration_tests help # Default target executed when no arguments are given to make. all: help @@ -38,9 +38,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -58,7 +56,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 936d7054bdf..060380d435e 100644 --- a/libs/partners/xai/Makefile +++ b/libs/partners/xai/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -36,9 +36,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -56,7 +54,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 959b863ae28..d2a41656457 100644 --- a/libs/standard-tests/Makefile +++ b/libs/standard-tests/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests integration_tests help extended_tests +.PHONY: all format lint test tests integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -35,9 +35,7 @@ lint_tests: MYPY_CACHE=.mypy_cache_test lint lint_diff lint_package lint_tests: [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -55,7 +53,6 @@ help: @echo 'check_imports - check imports' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - 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 78eeae5b12d..1c9ac843a6b 100644 --- a/libs/text-splitters/Makefile +++ b/libs/text-splitters/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint typing test tests test_watch integration_tests help extended_tests +.PHONY: all format lint test tests test_watch integration_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -45,9 +45,7 @@ lint lint_diff lint_package lint_tests: ./scripts/lint_imports.sh [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES) [ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff - -typing: - mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE) + [ "$(PYTHON_FILES)" = "" ] || 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) @@ -61,7 +59,6 @@ help: @echo '----' @echo 'format - run code formatters' @echo 'lint - run linters' - @echo 'typing - run type checking' @echo 'test - run unit tests' @echo 'tests - run unit tests' @echo 'test TEST_FILE= - run all tests in file'