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.
This commit is contained in:
1 parent
8f7297c0e3
commit
1f2ec506c4
1 file changed
+103
+103
@@ -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
|
||||
Reference in new issue
Block a user