AiderPythonCode Style

Python Aider Conventions

Aider AI coding conventions for Python: CONVENTIONS.md patterns for automated refactoring and clean Python code.

CONVENTIONS.md
- Use Python 3.12+ with PEP 695 type parameter syntax for generics
- Apply uv for package management; pyproject.toml for all project configuration
- Use ruff with all rules enabled; selectively ignore justified ones
- Apply Pydantic v2 for validation; never write manual validation functions
- Use httpx for all HTTP calls; never requests in async-capable code
- Write pytest with fixtures; use pytest-asyncio for async test functions
- Apply loguru for logging with automatic context propagation
- Use inline type: ignore[code] comments; never bare type: ignore

How to use with Aider

Create a `CONVENTIONS.md` file in your project root. Aider reads this and respects your conventions when generating changes.

#python#aider#conventions#uv#coding-rules

Related Rules