# ============================================
# CodeCollector - .gitignore
# ============================================

# --- Python ---
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
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-build/
.pdm.toml

# PEP 582
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.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

# ruff
.ruff_cache/

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# --- IDE ---
# PyCharm
.idea/

# VS Code
.vscode/
*.code-workspace

# Eclipse
.project
.classpath
.settings/

# NetBeans
nbproject/
nbbuild/
nbdist/

# Sublime Text
*.sublime-project
*.sublime-workspace

# Atom
.atom/

# Vim
*.swp
*.swo
*~
.*.swp
.*.swo

# Emacs
*~
\#*\#
.\#*

# --- OS ---
# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Linux
*~
.directory
.Trash-*

# Windows
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
*.stackdump
[Dd]esktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk

# --- Project Specific ---
# 输出文件（可以根据需要调整）
code_collection.txt
code_collection.md
code_collection*.txt
code_collection*.md
code_collection*.manifest.json
*.collection.txt
*.collection.md
output/
collected_code/

# 临时文件
tmp/
temp/
*.tmp
*.temp

# 备份文件
*.bak
*.backup
*.old

# 压缩文件
*.zip
*.tar.gz
*.rar
*.7z

# 配置文件（保留示例）
config.local.json
*.local.cfg

# 日志文件
*.log
logs/

# --- Environment ---
# Conda
.conda/
conda/
Miniconda*/
Anaconda*/

# NPM (如果项目中有前端部分)
node_modules/
package-lock.json
yarn.lock
.npm
.npmrc

# --- Docker ---
# (如果将来添加 Docker 支持)
.docker/
docker-compose.override.yml

# --- Documentation ---
# 生成的文档
site/
docs/_build/

# --- Security ---
# 私钥和证书
*.pem
*.key
*.crt
*.p12
*.pfx

# 密码文件
credentials.json
secrets.json
.env.local
.env.production

# --- Website ---
website/node_modules/
website/dist/

# --- Misc ---
# CodeCollector 自身的输出
codecollection.txt
collected_*.txt
!collected_example.txt

# 测试输出
test_output/
test_results/

# 性能分析
*.prof
*.lprof

# 数据库
*.db
*.sqlite
*.sqlite3