.gitignore 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. # 类型检查 / lint 缓存
  85. .mypy_cache/
  86. .pyright/
  87. .ruff_cache/
  88. .dmypy.json
  89. dmypy.json
  90. # Jupyter
  91. .ipynb_checkpoints/
  92. # ======================
  93. # 环境变量 / 密钥
  94. # ======================
  95. .env
  96. .env.*
  97. !.env.example
  98. !.env.template
  99. !.env.production
  100. alembic.ini
  101. !alembic.ini.example
  102. # ======================
  103. # AI / 工具产物(按需启用)
  104. # ======================
  105. .spec-workflow/
  106. .playwright-mcp/
  107. .claude/
  108. .serena/
  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. backend/instance/
  120. # 本地生成的部署包、演示压缩包和文档渲染临时目录
  121. deliverables/
  122. .docx-render-temp*/
  123. temp/
  124. 方案计划文档管理系统技术方案*
  125. dist-package*
  126. src-check/
  127. # Codex 本地会话控制目录
  128. .agents/
  129. # ======================
  130. # DMS 本地构建与发布产物(补充)
  131. # ======================
  132. # PyInstaller 中间字节码缓存;保留 build/ 下的 build.ps1 / *.spec / README.txt 作为工程资产
  133. build/__pycache_build/
  134. # PyInstaller --onedir 输出与历史备份
  135. dist-package/
  136. dist-package-bak/
  137. # 本地数据库导出快照(schema/数据/manifest/本地存储镜像)
  138. database/
  139. # 全库导出含真实数据(用户口令哈希、审计记录),禁止入库
  140. backend/database-export/
  141. # Java 编译产物(tools 下的单文件探针等不经构建目录输出)
  142. *.class
  143. # LibreOffice 单页导出排查用一次性探针(验证结论已沉淀进 LibreOfficeConverter)
  144. backend-java/tools/SinglePageProbe.*