fix(ci): fix black/ruff failures, add CoC and PR template
- Fix Python formatting (sync no longer strips blank lines from .py files) - Remove test_community_build.py (tests private sync module) - Fix ruff warnings in test files - Add CODE_OF_CONDUCT.md - Add .github/PULL_REQUEST_TEMPLATE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ Validation schemas for SEO plugin data (Yoast, RankMath, etc.).
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
||||
|
||||
|
||||
class SEOData(BaseModel):
|
||||
"""Schema for SEO data (read)"""
|
||||
|
||||
@@ -23,6 +24,7 @@ class SEOData(BaseModel):
|
||||
twitter_image: str | None = Field(None, description="Twitter card image URL")
|
||||
robots: list[str] | None = Field(None, description="Robots meta tags")
|
||||
|
||||
|
||||
class SEOUpdate(BaseModel):
|
||||
"""Schema for SEO data updates"""
|
||||
|
||||
@@ -61,6 +63,7 @@ class SEOUpdate(BaseModel):
|
||||
pass
|
||||
return v
|
||||
|
||||
|
||||
class YoastSEO(SEOData):
|
||||
"""Yoast SEO specific data"""
|
||||
|
||||
@@ -70,6 +73,7 @@ class YoastSEO(SEOData):
|
||||
yoast_wpseo_metadesc: str | None = Field(None, description="Yoast meta description")
|
||||
yoast_wpseo_title: str | None = Field(None, description="Yoast SEO title")
|
||||
|
||||
|
||||
class RankMathSEO(SEOData):
|
||||
"""RankMath SEO specific data"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user