# =============================================================================
# Python
# =============================================================================
__pycache__/
*.py[cod]
*$py.class
*.so

# Virtual environments
.venv/
venv/
.env/
.python-version

# Distribution / packaging
dist/
build/
*.egg-info/
*.egg
.eggs/

# =============================================================================
# Testing
# =============================================================================
.pytest_cache/
.coverage
htmlcov/
.tox/
.nox/
coverage.xml
*.cover
test_output/

# =============================================================================
# Type checking / Linting
# =============================================================================
.mypy_cache/
.ruff_cache/
.dmypy.json
dmypy.json

# =============================================================================
# Spellcheck
# =============================================================================
# cSpell cache (dictionary cache for performance)
.cspell/.cache

# =============================================================================
# Package managers
# =============================================================================
# uv cache (if using uv package manager)
.uv-cache/

# =============================================================================
# IDE / Editors
# =============================================================================
.idea/
*.swp
*.swo
*~
.project
.pydevproject
.settings/

# VS Code - keep config but ignore user-specific
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json
!.vscode/markdown.css
!.vscode/tasks.json
!.vscode/README.md

# =============================================================================
# Operating System
# =============================================================================
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Thumbs.db
ehthumbs.db
Desktop.ini

# =============================================================================
# Project-specific
# =============================================================================
# Temporary files
/tmp/
*.tmp
*.temp
*.bak

# Logs
*.log
logs/

# Generated outputs
output/
examples/output/

# Coverage and work tracking files
coverage.json
active_work.json

# =============================================================================
# Spreadsheet Output Files (generated by examples/tests)
# =============================================================================
# ODS files (LibreOffice)
*.ods

# Excel files
*.xlsx
*.xls
*.xlsm

# CSV files are generally ignored as outputs
# To track specific CSV data files, use explicit paths or negation:
#   !data/example.csv
#   !fixtures/*.csv

# =============================================================================
# LaTeX Generated Files
# =============================================================================
# PDF output files (generated by latexmk/lualatex)
examples/latex/*.pdf

# latexindent backup files
*.bak[0-9]
*.bak[0-9][0-9]

# GHDL work files
work-obj*.cf

# =============================================================================
# Claude Code Runtime Files
# =============================================================================
# Runtime-generated files (not tracked)
.claude/agent-outputs/*
!.claude/agent-outputs/.gitkeep
.claude/checkpoints/*
!.claude/checkpoints/.gitkeep
.claude/summaries/*
!.claude/summaries/.gitkeep

# Runtime state files
.claude/agent-registry.json
.claude/workflow-progress*.json
.claude/settings.local.json
.claude/settings.backup*.json
.claude/template.lock

# Hook logs and caches (generated at runtime)
.claude/hooks/*.log
.claude/hooks/errors.archive/
.claude/hooks/.context_state.json
.claude/hooks/orchestration-metrics.json
.claude/hooks/__pycache__/

# =============================================================================
# Coordination Files
# =============================================================================
# Coordination files are ephemeral runtime state
.coordination/**
!.coordination/README.md
!.coordination/checkpoints/
!.coordination/checkpoints/.archive/
!.coordination/checkpoints/.archive/.gitkeep
!.coordination/checkpoints/README.md
!.coordination/locks/
!.coordination/locks/.gitkeep
!.coordination/handoffs/
!.coordination/handoffs/.gitkeep
!.coordination/projects/
!.coordination/projects/.gitkeep
!.coordination/spec/
!.coordination/spec/incomplete-features.yaml

# =============================================================================
# Documentation Generated Files
# =============================================================================
# MkDocs generated site
site/
.hypothesis/
