From 1f2ec506c45ee5ef9c2bf85ff54f7f22c6b505bd Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Thu, 24 Sep 2026 16:01:34 -0500 Subject: [PATCH] chore(git): add comprehensive .gitignore for Python environment and toolchain - Ignore virtual environments (.venv/, venv/) and Python cache files. - Exclude build artifacts, test/coverage reports, and type checker/linter caches. - Block local environment files (.env, secrets/) and local SQLite database files. - Preserve .envrc for direnv virtual environment activation while ignoring secret overrides. --- .gitignore | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/.gitignore b/.gitignore index e69de29..337aec3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,103 @@ +# ============================================================================= +# Praxis — .gitignore +# ============================================================================= + +# ----------------------------------------------------------------------------- +# Python virtual environments +# ----------------------------------------------------------------------------- +.venv/ +venv/ +env/ +ENV/ + +# ----------------------------------------------------------------------------- +# Python cache & bytecode +# ----------------------------------------------------------------------------- +__pycache__/ +*.py[cod] +*$py.class +*.pyo + +# ----------------------------------------------------------------------------- +# Build & distribution artifacts +# ----------------------------------------------------------------------------- +dist/ +build/ +*.egg-info/ +*.egg +MANIFEST +.eggs/ + +# uv build cache +.uv/ + +# ----------------------------------------------------------------------------- +# Testing & coverage +# ----------------------------------------------------------------------------- +.pytest_cache/ +.coverage +.coverage.* +coverage.xml +htmlcov/ +*.lcov + +# ----------------------------------------------------------------------------- +# Type checkers +# ----------------------------------------------------------------------------- +.mypy_cache/ +.pyright/ +.dmypy.json +dmypy.json + +# ----------------------------------------------------------------------------- +# Linters & formatters +# ----------------------------------------------------------------------------- +.ruff_cache/ + +# ----------------------------------------------------------------------------- +# IDE & editor files +# ----------------------------------------------------------------------------- +.idea/ +.vscode/ +*.swp +*.swo +*~ +.DS_Store +Thumbs.db + +# ----------------------------------------------------------------------------- +# Secrets & environment overrides +# (keep .envrc — it only activates the venv, no credentials) +# ----------------------------------------------------------------------------- +.env +.env.* +!.env.example +*.pem +*.key +*.crt +*.p12 +*.pfx +secrets/ +secrets.yaml +secrets.yml +secrets.toml + +# ----------------------------------------------------------------------------- +# Database files (local dev / SQLite) +# ----------------------------------------------------------------------------- +*.db +*.sqlite +*.sqlite3 + +# ----------------------------------------------------------------------------- +# Logs +# ----------------------------------------------------------------------------- +*.log +logs/ + +# ----------------------------------------------------------------------------- +# OS / temp files +# ----------------------------------------------------------------------------- +*.tmp +*.bak +*.orig