# .gitignore baseline - seriousdevelopment skill
# Canonical source: assets/templates/gitignore, copied to <project>/.gitignore.
#
# Order matters and is not negotiable:
#   1. .*          ignore every dotfile and dot-directory
#   2. !.gitignore keep this file tracked anyway
#   3. re-include  dotfiles a project still ships (the blanket rule hides them)
#   4. stacks      one section per language actually used, deduplicated
#
# Because .* hides all dot paths, the stack sections below list only
# non-dot artifacts; dot caches (.venv/, .pytest_cache/, .mypy_cache/,
# .ruff_cache/, .coverage, .idea/, .vscode/, .DS_Store) are already covered.
# Delete the sections the project does not use; never delete sections 1-3.

# --- 1. blanket dot rule ----------------------------------------------------
.*
# --- 2. this file stays tracked (must stay the line after .*) ---------------
!.gitignore

# --- 3. tracked dotfiles, re-included explicitly ----------------------------
!.github/
!.gitattributes
!.editorconfig
!.dockerignore
!.env.example
!.env.sample
!.pre-commit-config.yaml

# --- 4a. Python -------------------------------------------------------------
__pycache__/
*.py[cod]
*.egg-info/
*.cpython-*.so
coverage.xml
htmlcov/

# --- 4b. Node / TypeScript --------------------------------------------------
node_modules/
*.tsbuildinfo
npm-debug.log*
yarn-error.log*
pnpm-debug.log*

# --- 4c. Go -----------------------------------------------------------------
*.exe
*.test
*.out

# --- 4d. C / C++ ------------------------------------------------------------
cmake-build-*/
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
compile_commands.json
*.o
*.a
*.so.*
*.dylib
*.dll
*.obj

# --- 4e. JVM ----------------------------------------------------------------
*.class
*.hprof

# --- 4f. .NET ---------------------------------------------------------------
*.user
*.suo

# --- 4g. Ruby ---------------------------------------------------------------
*.gem

# --- 5. shared output, deps, binaries, temp (all stacks) --------------------
build/
dist/
target/
out/
bin/
obj/
vendor/
vendor/bundle/
*.so

# --- 6. shared artifacts ----------------------------------------------------
*.log
logs/
tmp/
temp/
*.tmp
*.bak
*.orig
*.rej
*.zip
*.tar.gz
*.jar
*.war
