添加.gitignore文件和项目依赖文件

创建.gitignore文件,忽略常见的操作系统和IDE文件
生成requirements.txt包含项目所有依赖

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 17:03:50 +08:00
parent 85b726d8cb
commit 08b3b5c050
2 changed files with 113 additions and 0 deletions

94
.gitignore vendored Normal file
View File

@@ -0,0 +1,94 @@
# macOS
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# IDE
.idea/
.vscode/
.claude/
*.swp
*.swo
*~
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
pythonenv*
# Jupyter Notebook
.ipynb_checkpoints
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# Logs
logs/
*.log

19
requirements.txt Normal file
View File

@@ -0,0 +1,19 @@
# CardioAI - 心血管疾病智能辅助系统项目依赖
# 请按以下步骤配置环境:
# 1. 创建conda虚拟环境: conda create -n cardioenv python=3.10
# 2. 激活环境: conda activate cardioenv
# 3. 安装依赖: pip install -r requirements.txt
pandas>=2.0.0
openpyxl>=3.1.0
numpy>=1.24.0
scikit-learn>=1.3.0
xgboost>=2.0.0
joblib>=1.3.0
streamlit>=1.28.0
plotly>=5.18.0
Flask>=3.0.0
python-dotenv>=1.0.0
langchain-openai>=0.0.5
dashscope>=1.14.0
requests>=2.31.0