# ty type checker configuration # https://docs.astral.sh/ty/configuration/ [environment] python-version = "3.13" [src] # Only exclude files that genuinely can't be type-checked (missing external deps) exclude = [ "reproduce/**", "lightrag/tools/lightrag_visualizer/**", # imgui_bundle, moderngl not installed "**/graph_visual_with_html.py", # pyvis not installed "**/modalprocessors_example.py", # raganything not installed "**/raganything_example.py", # raganything not installed "**/rerank_example.py", # references non-existent cohere_rerank "**/lightrag_azure_openai_demo.py", # example file "lightrag/evaluation/**", # ragas optional dep "tests/test_prompt_*.py", # heavy mocking ] [rules] # Only ignore things that are genuinely unfixable patterns unresolved-import = "ignore" # Optional deps not installed conflicting-declarations = "ignore" # try/except ImportError pattern redundant-cast = "ignore" # Intentional casts for clarity