BMAD-METHOD/.claude/rules/python-fastapi-cursorrules-.../python-general-coding-stand...

11 lines
588 B
Plaintext

---
description: Applies general Python coding standards, including type hinting, input validation with Pydantic, background tasks, CORS handling, security utilities, PEP 8 compliance, and comprehensive testing.
globs: **/*.py
---
- Use type hints for all function parameters and return values
- Implement proper input validation using Pydantic
- Use FastAPI's background tasks for long-running operations
- Implement proper CORS handling
- Use FastAPI's security utilities for authentication
- Follow PEP 8 style guide for Python code
- Implement comprehensive unit and integration tests