mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
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 <>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user