From 5bf8e622f7addbdd9dec2e55266be6c21d7ed4a9 Mon Sep 17 00:00:00 2001 From: cruldra Date: Tue, 1 Apr 2025 18:33:27 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Python/Web/.cursorrules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Python/Web/.cursorrules | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Python/Web/.cursorrules b/Python/Web/.cursorrules index 8e4fc6f..b1fa24c 100644 --- a/Python/Web/.cursorrules +++ b/Python/Web/.cursorrules @@ -41,7 +41,13 @@ description: Python Web开发最佳实践与规范 │ ├── routes.py # 路由 │ ├── schemas.py # Pydantic模型 │ └── utils.py # 工具函数 - ├── __init__.py + ├── webhooks # 提供给第三方回调的接口 + │ ├── provider # 供应商 + │ │ ├── __init__.py + │ │ ├── routes.py # 路由 + │ │ ├── schemas.py # Pydantic模型 + │ │ └── utils.py # 工具函数 + │ └── __init__.py └── schemas.py # 模块公共模型 ``` @@ -92,3 +98,16 @@ description: Python Web开发最佳实践与规范 - 除非特别说明,否则不要捕获任何异常 - 在`$PROJECT_ROOT/app/core/exceptions.py`文件中创建自定义异常类 + + +## 工作流程 + +- 对于复杂的任务,将其拆分为多个小任务,并在`$PROJECT_ROOT`下创建`todo.md`文件,按照以下格式记录每个小任务: + + ```markdown + - [ ] 子任务1 + - [ ] 子任务2 + - [ ] 子任务3 + ``` +- 完成一个子任务后,在`todo.md`文件中使用`- [x]`标记完成 +- 在完成所有子任务后,删除`todo.md`文件