Why this change is needed: The CI pipeline was failing on the "Run pre-commit" step with 6 F841 errors (unused variables) and 1 formatting issue (missing trailing comma). This was blocking the PR from being merged. How it solves it: 1. Added trailing comma to _get_workspace_lock() function signature to match Python formatting standards 2. Changed unused lock variables (lock1, lock2) to underscore (_) in test_finalization_cleanup.py to indicate intentional disposal of return values (locks are created for their side effects only) 3. Applied ruff-format auto-formatting fixes Impact: - All pre-commit checks now pass locally - CI pipeline should pass on next push - No functional changes, only code style fixes Testing: Verified with: uv run pre-commit run --files <modified files> All checks passed: trailing whitespace, end of files, ruff-format, ruff |
||
|---|---|---|
| .. | ||
| api | ||
| evaluation | ||
| kg | ||
| llm | ||
| tools | ||
| __init__.py | ||
| base.py | ||
| constants.py | ||
| exceptions.py | ||
| lightrag.py | ||
| namespace.py | ||
| operate.py | ||
| prompt.py | ||
| rerank.py | ||
| types.py | ||
| utils.py | ||
| utils_graph.py | ||