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
5 changed files with 452 additions and 925 deletions

View file

@ -1,6 +1,4 @@
"""
Tests for the AuthContext middleware components.
"""
"""Tests for the AuthContext middleware components."""
import time

View file

@ -1,6 +1,4 @@
"""
Tests for the BearerAuth middleware components.
"""
"""Tests for the BearerAuth middleware components."""
import time
from typing import Any, cast

View file

@ -1,6 +1,4 @@
"""
Tests for OAuth error handling in the auth handlers.
"""
"""Tests for OAuth error handling in the auth handlers."""
import base64
import hashlib

View file

@ -1,6 +1,4 @@
"""
Integration tests for MCP Oauth Protected Resource.
"""
"""Integration tests for MCP Oauth Protected Resource."""
from urllib.parse import urlparse

View file

@ -1,6 +1,4 @@
"""
Tests for mcp.server.auth.provider module.
"""
"""Tests for mcp.server.auth.provider module."""
from mcp.server.auth.provider import construct_redirect_uri