# Version control
.git
.github
.gitignore
.gitattributes

# Documentation
*.md
README*
CHANGELOG*
LICENSE*
CONTRIBUTING*
docs/
documentation/
media/
# ...but keep the changelog: the backend serves it at /api/changelog and the
# Dockerfile copies it into the image (re-included after the *.md/CHANGELOG* rules).
!CHANGELOG.md
!tools/remote_server/README.md

# Development files
.vscode/
.idea/
*.swp
*.swo
*~

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Logs
*.log
logs/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids/
*.pid
*.seed
*.pid.lock

# Node.js
node_modules/
frontend/node_modules/
npm-debug.log
yarn-error.log
.yarn-integrity
.npm

# Python. Bare names match only at the context root, and `COPY ./backend`
# ships whatever reaches the context, so nested dev state needs `**/`.
**/__pycache__/
**/*.py[cod]
*$py.class
*.so
.Python
env/
venv/
**/.venv/
ENV/
env.bak/
venv.bak/
**/.pytest_cache/
.coverage
htmlcov/
.tox/
.cache/
.mypy_cache/
.dmypy.json
dmypy.json

# Build artifacts
dist/
build/
*.egg-info/
.eggs/
frontend/dist/
frontend/build/
frontend/.nuxt/
frontend/.output/

# Database files
**/*.db
backend/db/*.db

# Environment files: secrets. A dev checkout keeps them in backend/.env,
# which a root-only `.env` rule let `COPY ./backend` bake into the image.
**/.env
**/.env.*
!**/.env.example
**/.envrc

# Test files and coverage
coverage/
.nyc_output/
# Docker matches a bare `tests/` only at the context root, so nested suites
# (backend/tests, frontend/tests) need the `**/` form to stay out of the image.
**/tests/
**/test/
**/spec/
**/*.test.js
**/*.spec.js

# Backend dev/benchmark tooling: never imported by the app at runtime.
backend/loadtest/
backend/bow-eval.py
backend/repro_dup_schedule.py

# Docker files (exclude from build context)
Dockerfile*
docker-compose*.yml
.dockerignore

# CI/CD
.github/
.gitlab-ci.yml
.travis.yml
.circleci/
.jenkins/

# IDE and editor files
.vscode/
.idea/
*.sublime-*

# Temporary files
tmp/
temp/
.tmp/
.temp/

# Mac system files
**/.DS_Store

# Windows system files
Thumbs.db
ehthumbs.db
Desktop.ini

# Kubernetes
k8s/
*.yaml
*.yml
!bow-config.yaml

# Other
# Users' uploaded files (backend/uploads in a dev checkout): data, never image content.
**/uploads/
.sass-cache/
.cache/
