# ========================================================================================================
# Global Ignore (Safe Defaults) - Consolidated and potentially broader
# ========================================================================================================
*.log
*.tmp
*.temp
*.bak
*.swp
*.swo
*.swn
*.~*
*.lock
*.pid
*.pid.lock
*.orig
*.rej
*.DS_Store
Thumbs.db
ehthumbs.db
*.sublime-workspace
*.sublime-project
*.code-workspace
.vscode/
.idea/
*.iml
*.userprefs # Eclipse
.metadata/  # Eclipse
log/        # Generic log directory

# ========================================================================================================
# Python - Refined and Extended
# ========================================================================================================
__pycache__/
*.py[cod]
*$py.class
.venv/
env/
ENV/
venv/
env.bak/
venv.bak/
.pytest_cache/
.pytype/
.pyre/
.pdm.toml
.pdm-python
.pdm-build/
pdm.lock
*.ipynb_checkpoints
.ipynb_checkpoints/
*.ipynb.checkpoints/
.mypy_cache/
.dmypy.json
.pybuilder/
.tox/
.nox/
.hypothesis/
.pytest_cache/ # Redundant, but keeping for safety
.pyre/         # Redundant
.pytype/       # Redundant
htmlcov/
.coverage
.coverage.*
nosetests.xml
coverage.xml
*.cover
*.py,cover
.ropeproject/
.spyderproject
.spyproject
celerybeat-schedule
celerybeat.pid
docs/_build/
*.mo
*.pot
*.egg-info/ # Redundant, covered in Packaging

# Packaging - More comprehensive
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
*.manifest
*.spec
wheelhouse/ # For pip wheelhouse

# Data science / AI / ML - Expanded
data/
datasets/
logs/
reports/
experiments/
temp/
tmp/
*.csv
*.tsv
*.jsonl
*.npy
*.npz
*.parquet
*.pt
*.safetensors
models/
checkpoints/
pretrained_models/
*.ckpt
*.pth
*.bin
onnx_models/
*.onnx
wandb/
lightning_logs/
mlruns/
.flyte/
.dvc/
mlflow_run/  # MLflow default run directory
tensorboard/ # TensorBoard logs
comet_ml/    # Comet.ml logs
neptune.ai/  # Neptune.ai logs
optuna_runs/ # Optuna optimization runs
ray_results/ # Ray framework results

# Jupyter/IPython - More specific
*.ipynb
*.ipynb_checkpoints
.ipynb_checkpoints/
.ipython/
profile_default/
ipython_config.py
jupyter_execute_cache/ # Jupyter execution cache

# Linters and Formatters - More comprehensive
.ruff_cache/
.pylint.d/
.eslintcache
.stylelintcache
.prettiercache
.flake8
pylintrc
.pylintrc
.eslintrc.js
.eslintrc.yaml
.eslintrc.yml
.stylelintrc.json
.stylelintrc.yaml
.stylelintrc.yml
.prettierrc
.prettierrc.json
.prettierrc.yaml
.prettierrc.yml
.editorconfig

# ========================================================================================================
# Rust - Already quite good
# ========================================================================================================
target/
Cargo.lock
*.rs.bk

# ========================================================================================================
# Go - Extended
# ========================================================================================================
bin/
pkg/
vendor/
*.exe
*.exe~
*.dll
*.so
*.dylib
*.test
*.out
*.o
*.a
*.gcno
*.gcda
*.coverprofile
*.log
*.tmp
*.cache/
*.mod
go.sum   # Usually committed, but including in case of specific needs
.gopath/ # Older Go workspace structure

# ========================================================================================================
# JavaScript / TypeScript - More Web-focused
# ========================================================================================================
node_modules/
bower_components/
dist/
build/
out/
lib/
.eslintcache
.nyc_output/
coverage/
.cache/
.rts2_cache_cjs/
.rts2_cache_es/
.turbo/
yarn.lock
pnpm-lock.yaml
package-lock.json
*.js.map
*.tsbuildinfo
*.d.ts
jspm_packages/ # JSPM package manager

# Frontend Build Tools
.vite/
.rollup.cache/
.webpack/
.parcel-cache/
cache/ # Generic frontend cache

# Framework Specific (Web)
.next/
.nuxt/
.remix/
.svelte-kit/
.svelte/
.astro/
out/    # Static site generators often use 'out'
public/ # Sometimes contains generated assets

# Static Site Generators
.cache/             # Often used by SSGs
node_modules/.cache # Specific to npm-based SSGs

# ========================================================================================================
# Java - More detail
# ========================================================================================================
*.class
*.jar
*.war
*.ear
*.nar
*.hprof
hs_err_pid*
target/
out/
.gradle/
build/
dependency-reduced-pom.xml
.mvn/
.settings/
.classpath
.project
bin/ # Java sometimes uses 'bin' for output
lib/ # Library dependencies sometimes copied here
.m2/ # Maven local repository (usually not project-specific)

# ========================================================================================================
# C / C++ - More build system agnostic
# ========================================================================================================
*.o
*.a
*.so
*.out
*.obj
*.exe
*.dll
*.dylib
*.lib
*.app
*.i
*.ii
*.gch
*.pch
*.d
*.gcno
*.gcda
*.gcov
build/
cmake-build-*/
CMakeFiles/     # CMake build files
Makefile        # Often generated
*.mk            # Makefiles
autom4te.cache/ # Autoconf cache
config.log      # Autoconf log
config.status   # Autoconf script
configure       # Autoconf script

# ========================================================================================================
# .NET / C# - More comprehensive
# ========================================================================================================
bin/
obj/
*.suo
*.user
*.userosscache
*.sln.docstates
*.pidb
*.svd
*.csproj.user
*.vcxproj.user
*.ncrunch*
_ReSharper*/
*.resharper
*.dotCover
TestResult.xml
TestResults/
*.vspscc
*.vssscc
.vs/
.vscode/
packages/         # NuGet packages (usually restored)
*.nuget/          # Older NuGet information
project.lock.json # .NET Core dependency lock file (usually committed, but can be ignored if needed)
artifacts/        # Common output directory

# ========================================================================================================
# Docker - Already good
# ========================================================================================================
**/Dockerfile
**/docker-compose.yml
.dockerignore
.docker/
docker-compose.override.yml
*.tar
*.tar.gz
*.img
*.container
*.layer

# ========================================================================================================
# Terraform - Already good
# ========================================================================================================
.terraform/
*.tfstate
*.tfstate.*
.crash
*.tfplan
*.log
override.tf
override.tf.json
*_override.tf
*_override.tf.json
.terraform.lock.hcl
.terraform.tfstate.backup

# ========================================================================================================
# Kubernetes / Helm - Extended
# ========================================================================================================
*.kube/
.kube/
*.helm/
.helm/
*.chart/
chart.lock
charts/    # Often contains Helm charts
manifests/ # Sometimes contains generated Kubernetes manifests

# ========================================================================================================
# Cloud Platforms (AWS, GCP, Azure) - Common Artifacts
# ========================================================================================================
cdk.out/              # AWS CDK output
.serverless/          # Serverless Framework
terraform.tfvars      # Terraform variable files (sensitive!)
terraform.tfvars.json # Terraform variable files (sensitive!)
*.tfvars.example
*.tfvars.template
.aws-sam/ # AWS SAM CLI build artifacts
.gcloud/  # Google Cloud CLI configuration (usually user-specific, but can have project-level settings)
.azure/   # Azure CLI configuration

# ========================================================================================================
# Databases - Local Development Files
# ========================================================================================================
*.sqlite
*.db
*.mdf
*.ldf
*.sqlitedb
dump.sql
dump.psql
data.sql

# ========================================================================================================
# Security - Sensitive Information (Use with Extreme Caution - Consider NOT committing!)
# ========================================================================================================
# *.key # Private keys
# *.pem # Certificates
# *.p12 # Keystore files
# *.jks # Java Keystore
# *.config # Configuration files with potential secrets
# *.ini # INI files with potential secrets
# credentials.json # Service account credentials
# secrets.yaml
# secrets.yml
# .env* # Environment files (especially .env.local, .env.development)

# ========================================================================================================
# Operating System Specific - More comprehensive
# ========================================================================================================
.AppleDouble/ # macOS metadata
.com.apple.timemachine.donotpresent
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
._*
__MACOSX/
._*
*.AppleDouble
*.LSOverride
Icon?
Icon\r
.VolumeIcon.icns
Network Trash Folder
Temporary Items
.apdisk
/private/var/folders/* # macOS temp files
/tmp/*                 # Generic temp files

# ========================================================================================================
# Editors and IDEs - Even more
# ========================================================================================================
*.esproj          # Visual Studio Project
*.njsproj         # Node.js Project
*.sln.DotSettings # ReSharper settings
workspace.xml     # IntelliJ workspace
tasks.xml         # IntelliJ tasks
servers.xml       # IntelliJ servers
vcs.xml           # IntelliJ VCS settings
shelf/            # IntelliJ shelved changes
.sonarlint/       # SonarLint plugin settings
.gradle/          # Gradle project settings (already included, but here for emphasis)
local.properties  # Android Studio local properties
.cproject         # Eclipse C++ project
.settings/        # Eclipse project settings (already included)
.buildpath        # Eclipse Java build path
*.vcxproj.filters # Visual Studio project filters

# ========================================================================================================
# Version Control Specific - Non-Git
# ========================================================================================================
.svn/
_svn/
CVS/
,cvs/
RCS/
,rcs/
sccs/
vssver.scc
vssmsscc
.bzr/
_darcs/
.hg/
. Fossil-scm/
_FossilSCM/
.p4config
.history/

# ========================================================================================================
# Archives and Packages
# ========================================================================================================
*.zip
*.rar
*.gz
*.tgz
*.bz2
*.7z
*.deb
*.rpm
*.pkg
*.dmg
*.iso

# ========================================================================================================
# Media - Often large and not code
# ========================================================================================================
*.png
*.jpg
*.jpeg
*.gif
*.svg
*.mp4
*.mov
*.avi
*.mp3
*.wav
*.ogg

# ========================================================================================================
# Documents - Usually not version-controlled with code
# ========================================================================================================
*.pdf
*.doc
*.docx
*.xls
*.xlsx
*.ppt
*.pptx
*.odt
*.ods
*.odp
*.rtf

# ========================================================================================================
# Auto-generated Code - Depending on your workflow
# ========================================================================================================
generated/
codegen/
grpc_out/
thrift_out/
idl/

# ========================================================================================================
# Accessibility
# ========================================================================================================
.a11ycache/

# ========================================================================================================
# Specific Tools or Frameworks (Add as needed)
# ========================================================================================================
# .terraform-docs/ # Terraform Docs output
# .pulumi/ # Pulumi state and settings
# playwright-report/ # Playwright test reports
# cypress/ # Cypress test files and cache
# playwright/.cache/ # Playwright browser cache
*.wasm
*.db
*.db~
tools/plugin-cli/plugin-cli
