.gitignore 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # ======================
  2. # 通用 / IDE
  3. # ======================
  4. # IDE
  5. .idea/
  6. *.iml
  7. *.ipr
  8. *.iws
  9. .vscode/
  10. *.swp
  11. *.swo
  12. *~
  13. # OS
  14. .DS_Store
  15. Thumbs.db
  16. desktop.ini
  17. nul
  18. # 日志
  19. *.log
  20. logs/
  21. npm-debug.log*
  22. yarn-debug.log*
  23. yarn-error.log*
  24. # ======================
  25. # 前端 (Node / Vite / React)
  26. # ======================
  27. node_modules/
  28. dist/
  29. dist-ssr/
  30. .vite/
  31. *.local
  32. # 缓存
  33. .cache/
  34. .parcel-cache/
  35. .eslintcache
  36. .stylelintcache
  37. # 测试 / 覆盖率
  38. coverage/
  39. *.lcov
  40. # pnpm
  41. .pnpm-store/
  42. # ======================
  43. # Python
  44. # ======================
  45. # 字节码
  46. __pycache__/
  47. *.py[cod]
  48. *$py.class
  49. *.so
  50. # 虚拟环境
  51. .venv/
  52. venv/
  53. env/
  54. ENV/
  55. .python-version
  56. # 分发包 / 打包产物
  57. *.egg
  58. *.egg-info/
  59. .eggs/
  60. sdist/
  61. wheels/
  62. *.manifest
  63. *.spec
  64. pip-log.txt
  65. pip-delete-this-directory.txt
  66. # 测试 / 覆盖率
  67. .pytest_cache/
  68. .tox/
  69. .nox/
  70. .coverage
  71. .coverage.*
  72. htmlcov/
  73. coverage.xml
  74. *.cover
  75. # 用户私有待提取文档(含真实业务数据,禁止开源)
  76. *.docx
  77. *.doc
  78. *.pdf
  79. # 用户私有定义文件(与私有文档配套,禁止开源)
  80. backend/data/annotations/
  81. backend/data/samples/
  82. !**/info_definition.json
  83. !**/info_instance.json
  84. # 旧AI回归测试夹具属于工程资产
  85. !backend/tests/legacy_ai/test_party.docx
  86. # 类型检查 / lint 缓存
  87. .mypy_cache/
  88. .pyright/
  89. .ruff_cache/
  90. .dmypy.json
  91. dmypy.json
  92. # Jupyter
  93. .ipynb_checkpoints/
  94. # ======================
  95. # 环境变量 / 密钥
  96. # ======================
  97. .env
  98. .env.*
  99. !.env.example
  100. !.env.template
  101. !.env.production
  102. alembic.ini
  103. !alembic.ini.example
  104. # ======================
  105. # AI / 工具产物(按需启用)
  106. # ======================
  107. .spec-workflow/
  108. .claude/
  109. # ======================
  110. # DMS 运行时与交付产物
  111. # ======================
  112. # 正式文件存储只保留目录占位,不提交用户文件
  113. backend/dms-storage/**
  114. !backend/dms-storage/**/
  115. !backend/dms-storage/**/.gitkeep
  116. # 测试文件存储由测试数据和初始化命令生成
  117. backend/dms-test-storage/
  118. backend/dms-test-storage-*/
  119. # 本地生成的部署包、演示压缩包和文档渲染临时目录
  120. deliverables/
  121. .docx-render-temp*/
  122. temp/
  123. 方案计划文档管理系统技术方案*
  124. dist-package*
  125. # Codex 本地会话控制目录
  126. .agents/
  127. # ======================
  128. # DMS 本地构建与发布产物(补充)
  129. # ======================
  130. # PyInstaller 中间字节码缓存;保留 build/ 下的 build.ps1 / *.spec / README.txt 作为工程资产
  131. build/__pycache_build/
  132. # PyInstaller --onedir 输出与历史备份
  133. dist-package/
  134. dist-package-bak/
  135. # 本地数据库导出快照(schema/数据/manifest/本地存储镜像)
  136. database/