From 50919442e906623974a9888c12ec7b6c6ad3335c Mon Sep 17 00:00:00 2001 From: Yannick Stephan Date: Sat, 15 Feb 2025 00:56:45 +0100 Subject: [PATCH] Improve git and docker ignore --- .dockerignore | 64 ++++++++++++++++++++++++++++++++++++++++- .gitignore | 79 +++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 120 insertions(+), 23 deletions(-) diff --git a/.dockerignore b/.dockerignore index 4c49bd78..f1a82ffa 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,63 @@ -.env +# Python-related files and directories +__pycache__ +.cache + +# Virtual environment directories +*.venv + +# Env +env/ +*.env* +.env_example + +# Distribution / build files +site +dist/ +build/ +.eggs/ +*.egg-info/ +*.tgz +*.tar.gz + +# Exclude siles and folders +*.yml +.dockerignore +Dockerfile +Makefile + +# Exclude other projects +/tests +/scripts + +# Python version manager file +.python-version + +# Reports +*.coverage/ +*.log +log/ +*.logfire + +# Cache +.cache/ +.mypy_cache +.pytest_cache +.ruff_cache +.gradio +.logfire +temp/ + +# MacOS-related files +.DS_Store + +# VS Code settings (local configuration files) +.vscode + +# file +TODO.md + +# Exclude Git-related files +.git +.github +.gitignore +.pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index 2d9a41f3..2d074372 100644 --- a/.gitignore +++ b/.gitignore @@ -1,26 +1,61 @@ -__pycache__ -*.egg-info +# Python-related files +__pycache__/ +*.py[cod] +*.egg-info/ +.eggs/ +*.tgz +*.tar.gz +*.ini # Remove config.ini from repo + +# Virtual Environment +.venv/ +env/ +venv/ +*.env* +.env_example + +# Build / Distribution +dist/ +build/ +site/ + +# Logs / Reports +*.log +*.logfire +*.coverage/ +log/ + +# Caches +.cache/ +.mypy_cache/ +.pytest_cache/ +.ruff_cache/ +.gradio/ +temp/ + +# IDE / Editor Files +.idea/ +.vscode/ +.vscode/settings.json + +# Framework-specific files +local_neo4jWorkDir/ +neo4jWorkDir/ + +# Data & Storage +inputs/ +rag_storage/ +examples/input/ +examples/output/ + +# Miscellaneous +.DS_Store +TODO.md +ignore_this.txt +*.ignore.* + +# Project-specific files dickens/ book.txt lightrag-dev/ -.idea/ -dist/ -env/ -local_neo4jWorkDir/ -neo4jWorkDir/ -ignore_this.txt -.venv/ -*.ignore.* -.ruff_cache/ gui/ -*.log -.vscode -inputs -rag_storage -.env -venv/ -examples/input/ -examples/output/ -.DS_Store -#Remove config.ini from repo -*.ini