# ===== 通用文件 ===== # 操作系统生成的文件 .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db # IDE 和编辑器 .vscode/ .codebuddy/ .kiro/ .idea/ *.swp *.swo *~ # 日志文件 *.log logs/ # 允许提交文档日志(覆盖上面的通配忽略) !docs/logs/ !docs/logs/*.md !docs/*.md # 临时文件 *.tmp *.temp .cache/ # ===== Python 后端 ===== # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ 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/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder .pybuilder/ target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv .python-version # pipenv Pipfile.lock # poetry poetry.lock # pdm .pdm.toml .pdm-python .pdm-build/ # PEP 582 __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .env.* .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/ # pytype static type analyzer .pytype/ # Cython debug symbols cython_debug/ # PyCharm .idea/ # ===== Node.js / Next.js 前端 ===== # Dependencies node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* .pnpm-debug.log* # Runtime data pids *.pid *.seed *.pid.lock # Coverage directory used by tools like istanbul coverage/ *.lcov # nyc test coverage .nyc_output # Grunt intermediate storage .grunt # Bower dependency directory bower_components # node-waf configuration .lock-wscript # Compiled binary addons build/Release # Dependency directories jspm_packages/ # Snowpack dependency directory web_modules/ # TypeScript cache *.tsbuildinfo # Optional npm cache directory .npm # Optional eslint cache .eslintcache # Optional stylelint cache .stylelintcache # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ .rts2_cache_es/ .rts2_cache_umd/ # Optional REPL history .node_repl_history # Output of 'npm pack' *.tgz # Yarn Integrity file .yarn-integrity # parcel-bundler cache .parcel-cache # Next.js build output .next/ out/ # Nuxt.js build / generate output .nuxt dist # Gatsby files .cache/ /public # Storybook build outputs .out .storybook-out storybook-static # Temporary folders tmp/ temp/ # Vercel .vercel # Turbo .turbo # ===== 数据库 ===== # SQLite *.sqlite *.sqlite3 *.db # PostgreSQL *.sql # MySQL *.mysql # ===== 配置和密钥 ===== # 环境变量文件 .env .env.local .env.development.local .env.test.local .env.production.local # API 密钥和配置 config/secrets.json secrets/ *.key *.pem *.p12 *.pfx # ===== 项目特定 ===== # 数据文件 data/ *.csv *.json.bak *.xlsx # 报告和输出 /reports/ output/ exports/ # 备份文件 *.bak *.backup backup/ # 测试数据 test_data/ mock_data/ # ===== 测试文件 ===== # Python 测试文件 test_*.py *_test.py tests/test_*.py tests/*_test.py /test/ tests/output/ tests/reports/ tests/coverage/ tests/screenshots/ tests/artifacts/ # JavaScript/TypeScript 测试文件 *.test.js *.test.ts *.test.jsx *.test.tsx *.spec.js *.spec.ts *.spec.jsx *.spec.tsx __tests__/ /test/ /tests/ *.test.snap coverage/ .nyc_output/ # Jest 相关 jest-results.json jest.config.local.js jest.config.local.ts # Cypress 测试 cypress/videos/ cypress/screenshots/ cypress/downloads/ cypress/fixtures/generated/ # Playwright 测试 test-results/ playwright-report/ playwright/.cache/ # 测试报告和覆盖率 coverage/ .coverage htmlcov/ lcov.info coverage.xml coverage.json coverage.lcov junit.xml test-report.xml test-results.xml # 性能测试 benchmark/ performance/ load-test/ # 端到端测试 e2e/screenshots/ e2e/videos/ e2e/downloads/ e2e/test-results/ # 测试配置文件(如果是临时的) test.config.local.* *.test.config.local.* # 测试数据库 test.db test.sqlite test.sqlite3 *_test.db # 测试日志 test.log tests.log test_*.log *_test.log # Mock 和 Stub 文件 mocks/generated/ stubs/generated/ fixtures/generated/ # 测试缓存 .pytest_cache/ .cache/pytest/ node_modules/.cache/jest/ # 外部参考资料 Reference/