LightRAG/tests
chengjie bd423004d9 fix: Resolve pre-commit linting failures in PR1
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
2025-11-11 00:52:48 +08:00
..
test_aquery_data_endpoint.py Fix conditional logic in streaming response parser of unit test 2025-09-27 21:43:46 +08:00
test_curl_aquery_data.sh Fix linting 2025-10-06 04:57:11 +08:00
test_finalization_cleanup.py fix: Resolve pre-commit linting failures in PR1 2025-11-11 00:52:48 +08:00
test_graph_storage.py Initialize shared storage for all graph storage types in graph unit test 2025-11-06 19:24:12 +08:00
test_lightrag_ollama_chat.py clean comments and unused libs 2025-02-18 21:12:06 +01:00
test_postgres_retry_integration.py Refactor PostgreSQL retry config to use centralized configuration 2025-10-10 03:44:13 +08:00
test_workspace_lock_bugfixes.py fix: ensure finalize_share_data properly cleans up workspace locks 2025-11-11 00:23:42 +08:00
test_workspace_locks.py style: apply code formatting to pass pre-commit checks 2025-11-11 00:10:54 +08:00