chore: add typing target in Makefile (#35012)

This commit is contained in:
Mason Daugherty
2026-02-04 15:51:56 -05:00
committed by GitHub
parent 5981ee142c
commit 88fa71a166
21 changed files with 105 additions and 42 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: all format lint test tests test_watch integration_tests help extended_tests
.PHONY: all format lint typing test tests test_watch integration_tests help extended_tests
# Default target executed when no arguments are given to make.
all: help
@@ -45,7 +45,9 @@ 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
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
typing:
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,6 +61,7 @@ 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=<test_file> - run all tests in file'