Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ mkdocs>=1.6.1
mkdocs-material>=9.7.7
mkdocs-minify-plugin>=0.8
mkdocs-llmstxt>=0.5,<1.0
pymdown-extensions>=11.0.1
pymdown-extensions>=11.0.2
mkdocstrings[python]>=1.0.6
griffe>=2.2.0
8 changes: 7 additions & 1 deletion tests/unit/test_dependency_security_floors.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ def test_a2a_sdk_extra_cannot_resolve_vulnerable_aiohttp() -> None:


def test_docs_floor_excludes_vulnerable_pymdown_extensions() -> None:
# Compare parsed versions rather than the literal pin, so that raising the
# floor (which is always safer) does not fail this test. 11.0.1 is the first
# release without the advisory; anything at or above it is acceptable.
requirements = Path("requirements-docs.txt").read_text(encoding="utf-8").splitlines()
assert "pymdown-extensions>=11.0.1" in requirements
pins = [line for line in requirements if line.startswith("pymdown-extensions>=")]
assert len(pins) == 1, f"expected exactly one pymdown-extensions floor, got {pins}"
floor = tuple(int(part) for part in pins[0].split(">=", 1)[1].strip().split("."))
assert floor >= (11, 0, 1)


def test_governance_tooling_cannot_downgrade_runtime_dependencies() -> None:
Expand Down
Loading