Skip to content

Commit ada04ab

Browse files
committed
chore: add typing target in Makefile
1 parent 5981ee1 commit ada04ab

File tree

21 files changed

+105
-42
lines changed

21 files changed

+105
-42
lines changed

libs/core/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests test_watch integration_tests help extended_tests check_version
1+
.PHONY: all format lint typing test tests test_watch integration_tests help extended_tests check_version
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -57,7 +57,9 @@ lint lint_diff lint_package lint_tests:
5757
./scripts/lint_imports.sh
5858
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
5959
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
60-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
60+
61+
typing:
62+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
6163

6264
format format_diff:
6365
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -74,6 +76,7 @@ help:
7476
@echo '----'
7577
@echo 'format - run code formatters'
7678
@echo 'lint - run linters'
79+
@echo 'typing - run type checking'
7780
@echo 'check_version - validate version consistency'
7881
@echo 'test - run unit tests'
7982
@echo 'tests - run unit tests'

libs/langchain/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.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
1+
.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
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -56,7 +56,9 @@ lint lint_diff lint_package lint_tests:
5656
./scripts/lint_imports.sh
5757
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
5858
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
59-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
59+
60+
typing:
61+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
6062

6163
format format_diff:
6264
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -71,6 +73,7 @@ help:
7173
@echo '-- LINTING --'
7274
@echo 'format - run code formatters'
7375
@echo 'lint - run linters'
76+
@echo 'typing - run type checking'
7477
@echo '-- TESTS --'
7578
@echo 'coverage - run unit tests and generate coverage report'
7679
@echo 'test - run unit tests'

libs/langchain_v1/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.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
1+
.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
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -88,7 +88,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
8888
lint lint_diff lint_package lint_tests:
8989
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
9090
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
91-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
91+
92+
typing:
93+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
9294

9395
format format_diff:
9496
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -103,6 +105,7 @@ help:
103105
@echo '-- LINTING --'
104106
@echo 'format - run code formatters'
105107
@echo 'lint - run linters'
108+
@echo 'typing - run type checking'
106109
@echo 'check_version - validate version consistency'
107110
@echo '-- TESTS --'
108111
@echo 'coverage - run unit tests and generate coverage report'

libs/model-profiles/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests integration_tests help extended_tests
1+
.PHONY: all format lint typing test tests integration_tests help extended_tests
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -41,7 +41,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
4141
lint lint_diff lint_package lint_tests:
4242
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
4343
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
44-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
44+
45+
typing:
46+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
4547

4648
format format_diff:
4749
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -59,6 +61,7 @@ help:
5961
@echo 'check_imports - check imports'
6062
@echo 'format - run code formatters'
6163
@echo 'lint - run linters'
64+
@echo 'typing - run type checking'
6265
@echo 'test - run unit tests'
6366
@echo 'tests - run unit tests'
6467
@echo 'test TEST_FILE=<test_file> - run all tests in file'

libs/partners/anthropic/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests integration_tests help extended_tests
1+
.PHONY: all format lint typing test tests integration_tests help extended_tests
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -39,7 +39,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
3939
lint lint_diff lint_package lint_tests:
4040
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
4141
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
42-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
42+
43+
typing:
44+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
4345

4446
format format_diff:
4547
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -57,6 +59,7 @@ help:
5759
@echo 'check_imports - check imports'
5860
@echo 'format - run code formatters'
5961
@echo 'lint - run linters'
62+
@echo 'typing - run type checking'
6063
@echo 'test - run unit tests'
6164
@echo 'tests - run unit tests'
6265
@echo 'test TEST_FILE=<test_file> - run all tests in file'

libs/partners/chroma/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests integration_tests help extended_tests
1+
.PHONY: all format lint typing test tests integration_tests help extended_tests
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -37,7 +37,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
3737
lint lint_diff lint_package lint_tests:
3838
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
3939
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
40-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
40+
41+
typing:
42+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
4143

4244
format format_diff:
4345
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -55,6 +57,7 @@ help:
5557
@echo 'check_imports - check imports'
5658
@echo 'format - run code formatters'
5759
@echo 'lint - run linters'
60+
@echo 'typing - run type checking'
5861
@echo 'test - run unit tests'
5962
@echo 'tests - run unit tests'
6063
@echo 'test TEST_FILE=<test_file> - run all tests in file'

libs/partners/deepseek/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests integration_tests help extended_tests
1+
.PHONY: all format lint typing test tests integration_tests help extended_tests
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -38,7 +38,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
3838
lint lint_diff lint_package lint_tests:
3939
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
4040
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
41-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
41+
42+
typing:
43+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
4244

4345
format format_diff:
4446
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -56,6 +58,7 @@ help:
5658
@echo 'check_imports - check imports'
5759
@echo 'format - run code formatters'
5860
@echo 'lint - run linters'
61+
@echo 'typing - run type checking'
5962
@echo 'test - run unit tests'
6063
@echo 'tests - run unit tests'
6164
@echo 'test TEST_FILE=<test_file> - run all tests in file'

libs/partners/exa/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests integration_tests help extended_tests
1+
.PHONY: all format lint typing test tests integration_tests help extended_tests
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -37,7 +37,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
3737
lint lint_diff lint_package lint_tests:
3838
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
3939
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
40-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
40+
41+
typing:
42+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
4143

4244
format format_diff:
4345
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -55,6 +57,7 @@ help:
5557
@echo 'check_imports - check imports'
5658
@echo 'format - run code formatters'
5759
@echo 'lint - run linters'
60+
@echo 'typing - run type checking'
5861
@echo 'test - run unit tests'
5962
@echo 'tests - run unit tests'
6063
@echo 'test TEST_FILE=<test_file> - run all tests in file'

libs/partners/fireworks/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests integration_tests help extended_tests
1+
.PHONY: all format lint typing test tests integration_tests help extended_tests
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -36,7 +36,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
3636
lint lint_diff lint_package lint_tests:
3737
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
3838
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
39-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
39+
40+
typing:
41+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
4042

4143
format format_diff:
4244
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -54,6 +56,7 @@ help:
5456
@echo 'check_imports - check imports'
5557
@echo 'format - run code formatters'
5658
@echo 'lint - run linters'
59+
@echo 'typing - run type checking'
5760
@echo 'test - run unit tests'
5861
@echo 'tests - run unit tests'
5962
@echo 'test TEST_FILE=<test_file> - run all tests in file'

libs/partners/groq/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all format lint test tests integration_tests help extended_tests
1+
.PHONY: all format lint typing test tests integration_tests help extended_tests
22

33
# Default target executed when no arguments are given to make.
44
all: help
@@ -37,7 +37,9 @@ lint_tests: MYPY_CACHE=.mypy_cache_test
3737
lint lint_diff lint_package lint_tests:
3838
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
3939
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
40-
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
40+
41+
typing:
42+
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
4143

4244
format format_diff:
4345
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
@@ -55,6 +57,7 @@ help:
5557
@echo 'check_imports - check imports'
5658
@echo 'format - run code formatters'
5759
@echo 'lint - run linters'
60+
@echo 'typing - run type checking'
5861
@echo 'test - run unit tests'
5962
@echo 'tests - run unit tests'
6063
@echo 'test TEST_FILE=<test_file> - run all tests in file'

0 commit comments

Comments
 (0)