chore: P1 工程化工具链

- pyproject.toml:pytest/black/isort/mypy 统一配置
- requirements-dev.txt:测试与代码规范开发依赖
- .flake8 / .editorconfig:PEP8 与编辑器统一
- .pre-commit-config.yaml:提交前钩子
- Makefile:常用命令集
- .env.example:环境变量模板(76 键)
- tests/:pytest 骨架 + R 响应格式冒烟测试

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DjangoAdmin Dev
2026-08-07 12:14:51 +08:00
co-authored by Claude
parent 15f2a5e097
commit 8691412ec6
12 changed files with 448 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
# ============================================================
# 开发环境依赖
# 安装:pip install -r requirements-dev.txt
# ============================================================
# 先引入全部生产依赖(保证开发环境与生产一致)
-r requirements.txt
# ---- 测试 ----
pytest~=8.0
pytest-cov~=6.0
# ---- 代码质量 ----
flake8~=7.0
black~=24.0
isort~=5.13
mypy~=1.14
# ---- 工程化 ----
pre-commit~=3.8