From f16c03d2a6c99d57fbbcac693e9e31121798c86f Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Mon, 26 May 2025 15:54:43 +0300 Subject: [PATCH] Features: 1) Expand `.gitignore` to include comprehensive rules for Python, Node, Docker, IDEs, test artifacts, and distribution files; Fixes: None; Extra: 1) Add comments and structure to `.gitignore` for improved readability and maintainability; 2) Update placeholder comments in `docker-compose.yml` for future services. --- .dockerignore | 76 +++++++++++++++++++++++++++++++++++++++++---------- .gitignore | 1 + 2 files changed, 63 insertions(+), 14 deletions(-) diff --git a/.dockerignore b/.dockerignore index c481dce0..3e789adf 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,29 +1,77 @@ +# ────────────────────────────────────────────────────────────────────────── +# Logs and reports +# ────────────────────────────────────────────────────────────────────────── +.logs/ *.log -*.sqlite3 -*.pyo +debug.log +errors.log +test.json +coverage.xml +coverage.* +*.cover +*.py,cover +nosetests.xml + +# Cache directories +__pycache__/ +.pytest_cache/ +.hypothesis/ +.pyre/ +.pytype/ +.mypy_cache/ +.dmypy.json +dmypy.json +cython_debug/ + +# Python environments .Python env/ -venv/ -ENV/ env.bak/ +venv/ venv.bak/ -ENV.bak/ -*.egg-info/ +ENV/ +.venv/ +__pypackages__/ + +# ────────────────────────────────────────────────────────────────────────── +# Packaging and distribution +# ────────────────────────────────────────────────────────────────────────── +build/ +dist/ +dist-ssr/ *.egg -*.eggs -*.db +*.egg-info/ +.installed.cfg +MANIFEST +*.manifest +*.spec +sdist/ +wheels/ +share/python-wheels/ +pip-log.txt +pip-delete-this-directory.txt + +# Git .git/ -htmlcov/ -.coverage -.tox/ + +# macOS .DS_Store + +# JetBrains .idea/ + +# VisualStudio .vscode/ + +# ────────────────────────────────────────────────────────────────────────── +# Docker & service data +# ────────────────────────────────────────────────────────────────────────── Dockerfile docker-compose.yml -secrets/ -.env db_backups/ services_data/ static/ -media/ \ No newline at end of file +media/ + +# Environment file +.env \ No newline at end of file diff --git a/.gitignore b/.gitignore index c79ab446..a02eb483 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ cython_debug/ .Python env/ env.bak/ +ENV.bak/ venv/ venv.bak/ ENV/