Skip live-import validation for frozen v2 doc snapshots

This commit is contained in:
Jeremiah Lowin 2026-07-06 21:36:51 -04:00
commit be8aee3a96
No known key found for this signature in database

View file

@ -121,6 +121,12 @@ def test_doc_examples_quality():
syntax_failures.append(err)
continue
# Frozen version snapshots (docs/v2/...) document older FastMCP releases,
# so their imports are validated against a package that no longer ships
# them. Syntax-check them above, but skip live-import validation.
if Path(ex.path).relative_to(DOCS_DIR).parts[0] == "v2":
continue
import_failures.extend(_check_fastmcp_imports(ex))
total = len(examples)