Skip to content

Commit 594001d

Browse files
style: fix ruff formatting
🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ad1d21f commit 594001d

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

api/routers/seo.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
</html>"""
3838

3939
DEFAULT_IMAGE = "https://pyplots.ai/og-image.png"
40-
DEFAULT_DESCRIPTION = "Library-agnostic, AI-powered Python plotting examples. Automatically generated, tested, and maintained."
40+
DEFAULT_DESCRIPTION = (
41+
"Library-agnostic, AI-powered Python plotting examples. Automatically generated, tested, and maintained."
42+
)
4143

4244

4345
@router.get("/sitemap.xml")
@@ -93,10 +95,7 @@ async def seo_home():
9395
"""Bot-optimized home page with correct og:tags."""
9496
return HTMLResponse(
9597
BOT_HTML_TEMPLATE.format(
96-
title="pyplots.ai",
97-
description=DEFAULT_DESCRIPTION,
98-
image=DEFAULT_IMAGE,
99-
url="https://pyplots.ai/",
98+
title="pyplots.ai", description=DEFAULT_DESCRIPTION, image=DEFAULT_IMAGE, url="https://pyplots.ai/"
10099
)
101100
)
102101

@@ -144,11 +143,7 @@ async def seo_spec_overview(spec_id: str, db: AsyncSession | None = Depends(opti
144143

145144

146145
@router.get("/seo-proxy/{spec_id}/{library}")
147-
async def seo_spec_implementation(
148-
spec_id: str,
149-
library: str,
150-
db: AsyncSession | None = Depends(optional_db),
151-
):
146+
async def seo_spec_implementation(spec_id: str, library: str, db: AsyncSession | None = Depends(optional_db)):
152147
"""Bot-optimized spec implementation page with dynamic og:image from preview_url."""
153148
if db is None:
154149
# Fallback when DB unavailable

0 commit comments

Comments
 (0)