From 7284386ded63ae327cf6c015462f218c95f31d11 Mon Sep 17 00:00:00 2001 From: digouyou <2074920584@qq.com> Date: Sun, 26 Apr 2026 20:21:04 +0800 Subject: [PATCH] result --- source/.gitignore | 75 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 source/.gitignore diff --git a/source/.gitignore b/source/.gitignore new file mode 100644 index 0000000..ceebbad --- /dev/null +++ b/source/.gitignore @@ -0,0 +1,75 @@ +# 1. 忽略操作系统自动生成的文件 +.DS_Store +Thumbs.db +*.lnk + +# 2. 忽略编译/构建产物 +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# 3. 忽略IDE配置 +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# 4. 忽略日志文件 +*.log +*.tmp +*.temp +*.md + +# 5. 忽略敏感数据 +*.env +*.key +*.pem +*.cert +config.yaml +secrets/ + +# 6. 忽略大型媒体文件 +*.mp4 +*.mov +*.avi +*.wav +*.mp3 +*.zip +*.tar +*.gz +*.7z +*.rar + +# 7. 忽略数据分析/机器学习特有 +*.model +*.h5 +*.pkl +*.joblib +.ipynb_checkpoints/ + +# 8. 忽略你项目中的自动生成目录 +# 根据你的目录结构,忽略source/output/和source/reports/下的所有文件 +# 但保留目录结构本身(可以添加空的.gitkeep文件来保持空目录) +source/output/**/* +!source/output/.gitkeep +source/reports/**/* +!source/reports/.gitkeep \ No newline at end of file