From dfc386216b2f46574cb229271e2f3d91be6776af Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 28 Feb 2026 21:50:37 +0100 Subject: [PATCH] chore(backend): add backend-specific .gitignore Adds a dedicated .gitignore for the FastAPI/Python backend covering virtualenvs, build artefacts, test caches, type-checker output, local SQLite databases, and secrets. --- backend/.gitignore | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 backend/.gitignore diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100644 index 0000000..f8dd91a --- /dev/null +++ b/backend/.gitignore @@ -0,0 +1,49 @@ +# ───────────────────────────────────────────── +# backend/.gitignore (Python / FastAPI) +# ───────────────────────────────────────────── + +# Byte-compiled / optimised source files +__pycache__/ +*.py[cod] +*.pyo +*.pyd + +# Virtual environment (local override) +.venv/ +venv/ +env/ + +# Distribution / packaging +dist/ +build/ +*.egg-info/ + +# Testing +.coverage +.coverage.* +htmlcov/ +.pytest_cache/ +.tox/ + +# Type checkers & linters +.mypy_cache/ +.ruff_cache/ +.pytype/ + +# Local database files +*.sqlite3 +*.db +*.db-shm +*.db-wal + +# Alembic generated junk +alembic/versions/__pycache__/ + +# Secrets +.env +.env.* +!.env.example +secrets.json + +# Logs +*.log