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
20 lines
477 B
JSON
20 lines
477 B
JSON
{
|
|
// Expand scope to core package while keeping heavy optional providers excluded for now.
|
|
"include": ["lightrag"],
|
|
"exclude": [
|
|
"examples",
|
|
"tests",
|
|
"reproduce",
|
|
"rag_storage",
|
|
"documents",
|
|
"inputs",
|
|
"lightrag/tools/lightrag_visualizer",
|
|
"lightrag/tools/*",
|
|
"lightrag/kg",
|
|
"lightrag/llm",
|
|
"lightrag/evaluation"
|
|
],
|
|
"reportMissingImports": "none",
|
|
"reportMissingModuleSource": "none",
|
|
"reportMissingTypeStubs": "none"
|
|
}
|