mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 14:52:55 +08:00
rename to deprecated
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Guidelines for structuring routes and dependencies in FastAPI applications, stored in the routers directory.
|
||||
globs: **/routers/*.py
|
||||
---
|
||||
- File structure: exported router, sub-routes, utilities, static content, types (models, schemas).
|
||||
- Avoid unnecessary curly braces in conditional statements.
|
||||
- For single-line statements in conditionals, omit curly braces.
|
||||
- Use concise, one-line syntax for simple conditional statements (e.g., if condition: do_something()).
|
||||
- Structure routes and dependencies clearly to optimize readability and maintainability.
|
||||
Reference in New Issue
Block a user