# ============================================================
# python-demo 统一 .gitignore（合并所有子项目规则）
# ============================================================

# ===== JetBrains IDEs（IntelliJ/PyCharm 等） =====
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn.  Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

# ===== 其他 IDE / 编辑器 =====
.vscode/
*.swp
.DS_Store

# ===== Python 临时文件与构建产物 =====
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg-info/
*.egg
.eggs/
.pytest_cache/
.coverage
htmlcov/

# ===== 虚拟环境 =====
.venv/
venv/
env/

# ===== 包管理 =====
uv.lock

# ===== 项目级目录（递归匹配任意层级） =====
# 根级（带前导斜杠）保留原行为；不带斜杠版本递归匹配任意层级
/logs/
logs/

/ml_models/
ml_models/

/outputs/
outputs/

/output/
output/

/dist/
dist/

/build/
build/

/files/
files/

/tmp/
tmp/

# ===== Data 目录（递归匹配任意层级） =====
data/
data/**

# ===== 项目特殊配置 =====
.agents
output.log
.env

# ===== Vendor 白名单（保留示例文件） =====
/vendor/
!/vendor/.gitkeep
!/vendor/README.md
