From e55aa8603bc5060738eb6a94e0f30388173167e5 Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 2 May 2026 22:20:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=20gitignore=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .gitignore | 152 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bad73c --- /dev/null +++ b/.gitignore @@ -0,0 +1,152 @@ +# ===== Go ===== +# 编译产物 +*.exe +*.exe~ +*.dll +*.so +*.dylib +bin/ +dist/ +build/ +out/ + +# 测试与覆盖率 +*.test +*.out +*.prof +coverage.txt +coverage.html + +# Go 工作区 +go.work +go.work.sum + +# vendor 目录(按需启用) +# vendor/ + +# ===== Python ===== +# 字节码与缓存 +__pycache__/ +*.py[cod] +*$py.class + +# 打包与分发 +*.egg +*.egg-info/ +*.whl +sdist/ +wheels/ +pip-wheel-metadata/ + +# 虚拟环境 +venv/ +.venv/ +env/ +ENV/ +.virtualenv/ + +# 测试与类型检查缓存 +.pytest_cache/ +.tox/ +.nox/ +.mypy_cache/ +.ruff_cache/ +.pytype/ +.coverage +.coverage.* +htmlcov/ +nosetests.xml + +# Jupyter / IPython +.ipynb_checkpoints/ +profile_default/ +ipython_config.py + +# 包管理器 +pip-log.txt +pip-delete-this-directory.txt + +# ===== Docker ===== +# 环境变量文件(通常含密钥) +.env +.env.* +!.env.example +!.env.sample + +# 本地 compose 覆盖 +docker-compose.override.yml +docker-compose.override.yaml + +# Docker 卷数据挂载目录 +.docker-data/ +volumes/ + +# ===== 期货行情系统数据 ===== +# 行情/Tick/K线数据 +data/ +market_data/ +ticks/ +kline/ +*.csv +*.parquet +*.h5 +*.hdf5 +*.feather + +# 数据库文件 +*.db +*.db-journal +*.sqlite +*.sqlite3 +*.mdb + +# 回测结果与缓存 +backtest_results/ +results/ +cache/ +.cache/ + +# CTP / 行情接口生成的流文件 +*.con +*.dat +ResultInfo.xml +SPDStatic.dat +SPDUserPwd.dat + +# ===== 配置与密钥 ===== +config.local.* +config.production.* +secrets/ +*.pem +*.key +*.crt +credentials.json +account.yaml +account.yml + +# ===== 日志 ===== +*.log +logs/ +log/ + +# ===== IDE / 编辑器 ===== +.idea/ +.vscode/ +*.swp +*.swo +*.swn +*~ +.project +.settings/ + +# ===== 系统文件 ===== +.DS_Store +Thumbs.db +desktop.ini + +# ===== 临时文件 ===== +tmp/ +temp/ +*.tmp +*.bak +*.orig