chore: CLAUDE.md 改为本地文件,不再递交到 GitHub

CLAUDE.md 含本地开发指引(venv 使用要求等),属于本地配置。
git rm --cached 移除跟踪(本地文件保留),加入 .gitignore 防止误加回。
This commit is contained in:
Justin Gu
2026-06-27 04:22:50 +08:00
parent 781ee6c48a
commit 202415dd19
2 changed files with 21 additions and 1 deletions
+3
View File
@@ -23,3 +23,6 @@ signals.json
# 本地独立脚本(不属于 easy_tdx 库,依赖外部 unified_config / sqlalchemy
src/easy_tdx/exchange_margin.py
# 本地文件,不递交到 GitHub
CLAUDE.md
+18 -1
View File
@@ -1,6 +1,23 @@
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This file provides guidance to Claude Code (claude.ai/code) when working with this repository.
## 虚拟环境(必须)
本项目所有 Python 命令**必须使用项目根目录下的 venv 虚拟环境**,不要用系统 Python 或其他环境。
```bash
# 激活 venvWindows / Git Bash
source venv/Scripts/activate
# 或直接用 venv 的解释器(无需激活)
venv/Scripts/python.exe -m pytest ...
venv/Scripts/python.exe -m mypy src/
venv/Scripts/ruff check src/
venv/Scripts/easy-tdx --help
```
easy-tdx 已在 venv 中以 editable 模式安装(`pip install -e .`),修改 `src/` 后即时生效,无需重装。
## Build / Test / Lint