# Python 相关文件
__pycache__/
*.py[cod]
*.so
*.dll
*.dylib
*.pyd
*.egg-info/
.pytest_cache/
.coverage
htmlcov/
.tox/
.hypothesis/
.cache/
.trae/
.wl/
.claude/

# 构建目录
build/
dist/
wheels/
target/

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

# Issue #220: `env/` above is a virtualenv pattern, but the env *domain* is
# repo code. Re-include only the two in-tree paths. `!dir/` must precede
# `!dir/**`: git cannot re-include files under an excluded parent directory.
# The trailing __pycache__ rules win over `!dir/**` (last match wins) so
# bytecode stays ignored inside the re-included trees.
!src/wl_cli/env/
!src/wl_cli/env/**
!tests/domains/env/
!tests/domains/env/**
# ...but only source: virtualenvs, bytecode and nested env/venv directories
# stay ignored anywhere inside those two re-included trees (last match wins).
src/wl_cli/env/**/__pycache__/
tests/domains/env/**/__pycache__/
src/wl_cli/env/**/.venv/
src/wl_cli/env/**/env/
src/wl_cli/env/**/venv/
src/wl_cli/env/**/ENV/
tests/domains/env/**/.venv/
tests/domains/env/**/env/
tests/domains/env/**/venv/
tests/domains/env/**/ENV/

# 依赖管理
.uv/
.uv_cache/
.ruff_cache/
.mypy_cache/
node_modules/

# IDE 和编辑器
.idea/
.vscode/
.vs/
*.sln
*.suo
*.ntvs*
*.njsproj
*.sw?

# 临时文件和系统文件
.DS_Store

# Jupyter 文件
.ipynb_checkpoints/

# 日志和数据文件
*.log
logs/
results/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
dev-debug.log

# 本地配置
.env
.env.local
# PyPI/twine 凭据文件（历史上曾误入库，见 docs/sop-audit/2026-10-04-sop-report.md F7）
.pypirc
auto_activate_venv.sh
deactivate_temp.sh

# 工具和脚本（本地使用，不加入版本控制）
todos/

# 类型与本地生成文件
typings/
src/wl_cli/lib/sop.md

# 任务和临时文件
tasks.json
tasks/
**/*.token

# Git worktree 和测试工具
.worktrees/
.rpytest/flakiness.json

# agent 工具链的本地状态（每次运行都会重建，不进版本控制）
.codex/
.loopx/

# 一致性语料（票 #273）：语料归需求方（wlcc），按 contract-v1 克隆取用，永不入库。
# CI 的 contract job 克隆到 .contract-corpus/；本地按需克隆到 tests/contract/。
.contract-corpus/
tests/contract/
