Bundles the 2026-07-12 code-audit session (Clusters A/B/C/D partial/E/F): denormalized Post/Advertisement reaction/comment/repost counters synced transactionally instead of live _count queries; real cursor-based pagination for followers/following/blocks lists; assertPetOwnership + formatRelativeTime centralized; dead r2.ts + AWS SDK deps removed; missing DB indexes added; account-deletion flow, mention notifications, pull-to-refresh feed, and mobile UI/i18n fixes from the surrounding sessions. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
711 B
711 B
paths
| paths | ||
|---|---|---|
|
Python Coding Style
This file extends common/coding-style.md with Python specific content.
Standards
- Follow PEP 8 conventions
- Use type annotations on all function signatures
Immutability
Prefer immutable data structures:
from dataclasses import dataclass
@dataclass(frozen=True)
class User:
name: str
email: str
from typing import NamedTuple
class Point(NamedTuple):
x: float
y: float
Formatting
- black for code formatting
- isort for import sorting
- ruff for linting
Reference
See skill: python-patterns for comprehensive Python idioms and patterns.