Add citation.py module for document citation tracking and management. Configure Biome and Ruff for consistent code formatting across TypeScript and Python. Update webui with improved component organization, API client refactoring, and enhanced user interface patterns. Add formatting configs and dependency updates for build toolchain optimization.
34 lines
682 B
TOML
34 lines
682 B
TOML
# Ruff configuration for local lint runs
|
|
|
|
line-length = 120
|
|
target-version = "py310"
|
|
extend-exclude = [
|
|
"lightrag_webui", # frontend (TS/JS)
|
|
"node_modules",
|
|
".venv",
|
|
"build",
|
|
"dist",
|
|
]
|
|
|
|
[lint]
|
|
# Start with core errors + imports, then add a small set of safety/style checks.
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"F", # pyflakes
|
|
"I", # import sorting
|
|
"B", # bugbear
|
|
"UP", # pyupgrade
|
|
"C4", # comprehensions
|
|
"SIM",# simplify
|
|
"TID",# tidy imports
|
|
"RUF" # ruff-specific
|
|
]
|
|
ignore = [
|
|
"E402", # allow imports after other statements (mirrors pre-commit hook)
|
|
]
|
|
fixable = ["ALL"]
|
|
|
|
[format]
|
|
quote-style = "single"
|
|
indent-style = "space"
|
|
line-ending = "lf"
|