mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
add .mdc file
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
description: Specific rules for creating Pydantic models, focusing on versioning and usage within the project.
|
||||
globs: **/models/*.py
|
||||
---
|
||||
- Use type hints for all function signatures. Prefer Pydantic models over raw dictionaries for input validation.
|
||||
- Use Pydantic v2.
|
||||
- Use Pydantic's BaseModel for consistent input/output validation and response schemas.
|
||||
Reference in New Issue
Block a user