# ============================================================================
# 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/
pip-wheel-metadata/
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/

# 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
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
Pipfile.lock

# 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

# Pyre type checker
.pyre/

# ============================================================================
# IDEs and Editors
# ============================================================================

# Visual Studio Code
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# PyCharm
.idea/
.idea/*
*.iml
*.iws
.idea_modules/

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

# Vim
*.swp
*.swo
*~
.vim/

# Emacs
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Eclipse
.project
.pydevproject
.settings/

# NetBeans
nbproject/
nbbuild/
nbdist/
.nb-gradle/

# ============================================================================
# Operating Systems
# ============================================================================

# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

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

# Linux
*~
.fuse_hidden*
.directory
.Trash-*
.nfs*

# ============================================================================
# Project-Specific: Video Master-Adaptation Detection
# ============================================================================

# Environment variables (contains OpenAI API key)
.env
.env.local
.env.*.local

# Data directory - fingerprints and database
data/
data/fingerprints/
data/fingerprints/*.json
data/masters.json
!data/.gitkeep

# Test videos and masters (exclude from repo)
To Exclude/
test_videos/
test_videos/**
sample_videos/
*.mp4
*.mov
*.avi
*.mkv
*.webm
*.flv
*.wmv
*.m4v
*.mpg
*.mpeg
*.3gp
*.ogv

# Generated reports
matching_report_*.html
reports/
*.html
!docs/*.html

# Logs
logs/
*.log
debug.log
error.log

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

# Backup files
*.bak
*.backup
*~

# AI Vision cache (if implemented)
.ai_cache/
ai_cache/

# Performance profiling
*.prof
*.lprof

# Database backups
*.db.backup
masters.json.backup
masters.json.bak

# Fingerprint cache
fingerprint_cache/
.fingerprint_cache/

# Development/testing
sandbox/
experiments/
scratch/
playground/

# Documentation builds (if using Sphinx/MkDocs)
docs/_build/
docs/.doctrees/
site/

# ============================================================================
# Dependencies (optional - uncomment if needed)
# ============================================================================

# Uncomment if you want to exclude large video processing libraries
# (usually better to keep in requirements.txt)
# opencv/
# ffmpeg/
# chromaprint/

# ============================================================================
# Misc
# ============================================================================

# Patch files
*.patch
*.diff

# Archive files
*.zip
*.tar
*.tar.gz
*.rar
*.7z

# Large files (Git LFS if needed)
*.psd
*.ai
*.sketch

# API keys and secrets (extra safety)
*secret*
*SECRET*
*api_key*
*API_KEY*
credentials.json
secrets.json
auth.json

# Node modules (if any JS tooling added later)
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
yarn.lock

# ============================================================================
# Keep Important Files
# ============================================================================

# Ensure these are NOT ignored
!.env.example
!.gitignore
!README.md
!requirements.txt
!LICENSE
!CHANGELOG.md
!DOCUMENTATION.md
