mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
Skip live-import validation for frozen v2 doc snapshots
This commit is contained in:
parent
ad02710e9b
commit
be8aee3a96
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue