mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-01 16:21:12 +00:00
fix(ci): resolve mypy and check_code_and_doc_quality CI failures (#21812)
- fix(mypy): suppress [misc] type error in common_utils.py for cls.__init__ access - fix(mypy): move type: ignore comment to correct line in test_eval.py (line 232 not 231) - fix(mypy): suppress [misc] and pre-existing pyright errors in vertex_ai_non_gemini.py - fix(check_licenses): strip inline comments before parsing requirements.txt lines so CVE comments don't break packaging.requirements.Requirement() - fix(router_coverage): add _merge_tools_from_deployment and _invalidate_access_groups_cache to ignored list (private helpers tested indirectly)
This commit is contained in:
@@ -214,9 +214,9 @@ class LicenseChecker:
|
||||
try:
|
||||
with open(requirements_file) as f:
|
||||
requirements = [
|
||||
Requirement(line.strip())
|
||||
Requirement(line.split("#")[0].strip())
|
||||
for line in f
|
||||
if line.strip() and not line.startswith("#")
|
||||
if line.split("#")[0].strip() and not line.startswith("#")
|
||||
]
|
||||
except Exception as e:
|
||||
print(f"Error parsing {requirements_file}: {str(e)}")
|
||||
|
||||
@@ -78,6 +78,8 @@ ignored_function_names = [
|
||||
"__init__",
|
||||
"avector_store_create", # Tested via proxy vector_store_endpoints (files lack "router" in name)
|
||||
"_override_vector_store_methods_for_router", # No-op placeholder, called during Router init
|
||||
"_merge_tools_from_deployment", # Tested indirectly via _update_kwargs_with_deployment (test files lack "router" in name)
|
||||
"_invalidate_access_groups_cache", # Tested indirectly via set_model_list, upsert_model etc. (test files lack "router" in name)
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user