chore: add D212 lint rule to enforce Google-style docstrings (#1892)

This commit is contained in:
Felix Weinberger 2026-01-16 16:10:52 +00:00 • committed by GitHub
commit d41d0c0128
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 452 additions and 925 deletions

View file

@ -1,5 +1,4 @@
"""
Run from the repository root:
"""Run from the repository root:
uv run examples/snippets/servers/lowlevel/basic.py
"""

View file

@ -1,6 +1,5 @@
"""
Run from the repository root:
uv run examples/snippets/servers/lowlevel/direct_call_tool_result.py
"""Run from the repository root:
uv run examples/snippets/servers/lowlevel/direct_call_tool_result.py
"""
import asyncio

View file

@ -1,6 +1,5 @@
"""
Run from the repository root:
uv run examples/snippets/servers/lowlevel/lifespan.py
"""Run from the repository root:
uv run examples/snippets/servers/lowlevel/lifespan.py
"""
from collections.abc import AsyncIterator

View file

@ -1,6 +1,5 @@
"""
Run from the repository root:
uv run examples/snippets/servers/lowlevel/structured_output.py
"""Run from the repository root:
uv run examples/snippets/servers/lowlevel/structured_output.py
"""
import asyncio