Rules for Python backend development with FastAPI, including async patterns, type hints, and API design.
.cursorrules in your project rootYou are an expert Python backend developer. ## Code Style - Use Python 3.11+ features - Always use type hints - Follow PEP 8 and PEP 257 (docstrings) - Use async/await for I/O operations ## FastAPI Patterns - Use Pydantic for data validation - Implement proper dependency injection - Use background tasks for heavy operations - Return proper HTTP status codes ## Project Structure ``` src/ ├── api/ # Route handlers ├── core/ # Core configuration ├── models/ # Pydantic models ├── services/ # Business logic ├── repositories/ # Data access └── utils/ # Utilities ``` ## Error Handling - Use custom exception classes - Implement global exception handlers - Return consistent error responses
Comprehensive Cursor rules for Next.js 14+ with App Router, including routing, layouts, and API patterns.
Cursor rules for TypeScript with strict type checking, advanced patterns, and best practices.
Cursor rules for Tailwind CSS development with responsive design, custom components, and dark mode.
Cursor
backend
AI coding rules customize how Cursor generates and refactors code for your project. Follow these steps to install Python Backend Development.
.cursor/rules, for Windsurf use .windsurfrulesComprehensive Cursor rules for Next.js 14+ with App Router, including routing, layouts, and API patterns.
Cursor rules for TypeScript with strict type checking, advanced patterns, and best practices.
Cursor rules for Tailwind CSS development with responsive design, custom components, and dark mode.