From b941cfffde7abd7281ab2b30a985c3c88d456a28 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Wed, 6 Jul 2022 22:55:29 +0530 Subject: [PATCH] create_baseline_stubs: check all defs by default (#8227) Since stubgen will usually create definition complete stubs, we should have stubtest check missing definitions so we can know to reflect any future additions. Co-authored-by: hauntsaninja <> --- scripts/create_baseline_stubs.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/create_baseline_stubs.py b/scripts/create_baseline_stubs.py index a0dd64f41..58b9534f1 100755 --- a/scripts/create_baseline_stubs.py +++ b/scripts/create_baseline_stubs.py @@ -85,7 +85,14 @@ def create_metadata(stub_dir: str, version: str) -> None: assert not os.path.exists(fnam) print(f"Writing {fnam}") with open(fnam, "w") as f: - f.write(f'version = "{version}.*"\n') + f.write( + f"""\ +version = "{version}.*" + +[tool.stubtest] +ignore_missing_stub = false +""" + ) def add_pyright_exclusion(stub_dir: str) -> None: