Refine gitignore to only exclude root-level test files

(cherry picked from commit a790f081dc)
This commit is contained in:
yangdx 2025-11-06 18:51:21 +08:00 committed by Raphaël MANSUY
parent 8650307e65
commit 35dd68d767

58
.gitignore vendored
View file

@ -9,23 +9,10 @@ __pycache__/
# Virtual Environment # Virtual Environment
.venv/ .venv/
env/
venv/ venv/
*.env*
.env_example
# BUILT web UI assets # Enviroment Variable Files
# When building the UI in CI, the build artifacts are generated by Vite .env
# and are not source-controlled.
lightrag_webui/dist/
lightrag_webui/build/
# When using the python API embedded UI, ignore generated JS & CSS
lightrag/api/webui/assets/*.js
lightrag/api/webui/assets/*.js.map
lightrag/api/webui/assets/*.css
# Ignore the whole assets directory (build artifacts / vendor bundles)
lightrag/api/webui/assets/
# Build / Distribution # Build / Distribution
dist/ dist/
@ -48,20 +35,6 @@ log/
.history/ .history/
temp/ temp/
# Model weights and caches (do not commit large models or checkpoints)
models/
checkpoints/
weights/
*.ckpt
*.pt
*.bin
*.safetensors
*.h5
model_cache/
.cache/huggingface/
transformers_cache/
huggingface/
# IDE / Editor Files # IDE / Editor Files
.idea/ .idea/
.vscode/ .vscode/
@ -73,19 +46,12 @@ neo4jWorkDir/
# Data & Storage # Data & Storage
inputs/ inputs/
output/
rag_storage/ rag_storage/
examples/input/
examples/output/
output*/
data/ data/
.coverage # Evaluation results
coverage.xml lightrag/evaluation/results/
htmlcov/
.ipynb_checkpoints/
.pytype/
pip-wheel-metadata/
pip-log.txt
# Miscellaneous # Miscellaneous
.DS_Store .DS_Store
@ -94,15 +60,15 @@ ignore_this.txt
*.ignore.* *.ignore.*
# Project-specific files # Project-specific files
dickens*/ /dickens*/
book.txt /book.txt
LightRAG.pdf
download_models_hf.py download_models_hf.py
lightrag-dev/
gui/
# unit-test files # Frontend build output (built during PyPI release)
/lightrag/api/webui/
# temporary test files in project root
/test_*
# Cline files # Cline files
memory-bank memory-bank
memory-bank/