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
Next.js Aider Conventions
AiderNext.js
Aider conventions for Next.js: file naming, route organization, and App Router conventions.
Architecture
nextjs · aiderCopy Ready
SQL Aider Conventions
AiderSQL
Aider conventions for SQL and database migrations: naming, formatting, and migration patterns.
Database
sql · aiderCopy Ready
Security Aider Conventions
Aidersecurity
Aider conventions for security: secure coding patterns, vulnerability prevention, and security review checklist.
Security
security · aiderCopy Ready
Testing Aider Conventions
Aidertesting
Aider conventions for tests: structure, naming, and testing philosophy for maintainable test suites.
Testing
testing · aiderCopy Ready