Format entire codebase with ruff and add type hints across all modules: - Apply ruff formatting to all Python files (121 files, 17K insertions) - Add type hints to function signatures throughout lightrag core and API - Update test suite with improved type annotations and docstrings - Add pyrightconfig.json for static type checking configuration - Create prompt_optimized.py and test_extraction_prompt_ab.py test files - Update ruff.toml and .gitignore for improved linting configuration - Standardize code style across examples, reproduce scripts, and utilities
80 lines
895 B
Text
80 lines
895 B
Text
# Python-related files
|
|
__pycache__/
|
|
*.py[cod]
|
|
*.egg-info/
|
|
.eggs/
|
|
*.tgz
|
|
*.tar.gz
|
|
*.ini
|
|
|
|
# Virtual Environment
|
|
.venv/
|
|
venv/
|
|
|
|
# Enviroment Variable Files
|
|
.env
|
|
|
|
# Build / Distribution
|
|
dist/
|
|
build/
|
|
site/
|
|
|
|
# Logs / Reports
|
|
*.log
|
|
*.log.*
|
|
*.logfire
|
|
*.coverage/
|
|
log/
|
|
|
|
# Caches
|
|
.cache/
|
|
.mypy_cache/
|
|
.pytest_cache/
|
|
.ruff_cache/
|
|
.gradio/
|
|
.history/
|
|
temp/
|
|
|
|
# IDE / Editor Files
|
|
.idea/
|
|
.vscode/
|
|
.vscode/settings.json
|
|
|
|
# Framework-specific files
|
|
local_neo4jWorkDir/
|
|
neo4jWorkDir/
|
|
|
|
# Data & Storage
|
|
inputs/
|
|
output/
|
|
rag_storage/
|
|
data/
|
|
|
|
# Evaluation results
|
|
lightrag/evaluation/results/
|
|
|
|
# Miscellaneous
|
|
.DS_Store
|
|
TODO.md
|
|
ignore_this.txt
|
|
*.ignore.*
|
|
|
|
# Project-specific files
|
|
/dickens*/
|
|
/book.txt
|
|
download_models_hf.py
|
|
|
|
# Frontend build output (built during PyPI release)
|
|
/lightrag/api/webui/
|
|
|
|
# temporary test files in project root
|
|
/test_*
|
|
|
|
# Cline files
|
|
memory-bank
|
|
.claude/CLAUDE.md
|
|
.claude/
|
|
|
|
# docs
|
|
/documents
|
|
|