Skip to content

Commit 0ede4d1

Browse files
authored
Add back stubtest check (#1610)
1 parent 8758528 commit 0ede4d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.DEFAULT_GOAL := all
22
sources = python/pydantic_core tests generate_self_schema.py wasm-preview/run_tests.py
33

4+
mypy-stubtest = uv run python -m mypy.stubtest pydantic_core._pydantic_core --allowlist .mypy-stubtest-allowlist
5+
46
# using pip install cargo (via maturin via pip) doesn't get the tty handle
57
# so doesn't render color without some help
68
export CARGO_TERM_COLOR=$(shell (test -t 0 && echo "always") || echo "auto")
@@ -108,6 +110,7 @@ lint-python:
108110
uv run ruff check $(sources)
109111
uv run ruff format --check $(sources)
110112
uv run griffe dump -f -d google -LWARNING -o/dev/null python/pydantic_core
113+
$(mypy-stubtest)
111114

112115
.PHONY: lint-rust
113116
lint-rust:

0 commit comments

Comments
 (0)