Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -115,6 +115,7 @@ def load_endpoint_plugins(
|
||||
|
||||
Returns:
|
||||
Instantiated plugins that passed gating in discovery order.
|
||||
|
||||
"""
|
||||
from importlib.metadata import entry_points
|
||||
|
||||
|
||||
@@ -47,8 +47,7 @@ class FilesystemResolver(LoRAResolver):
|
||||
|
||||
|
||||
def register_filesystem_resolver():
|
||||
"""Register the filesystem LoRA Resolver with vLLM"""
|
||||
|
||||
"""Register the filesystem LoRA Resolver with vLLM."""
|
||||
lora_cache_dir = envs.VLLM_LORA_RESOLVER_CACHE_DIR
|
||||
if lora_cache_dir:
|
||||
if not os.path.exists(lora_cache_dir) or not os.path.isdir(lora_cache_dir):
|
||||
|
||||
@@ -67,6 +67,7 @@ class HfHubResolver(FilesystemResolver):
|
||||
lora_name: Path to LoRA in HF Hub, e.g., <org>/<repo>/<subpath>,
|
||||
match on <org>/<repo> (if it contains an adapter directly) or
|
||||
<org>/<repo>/ if it may have one in subdirs.
|
||||
|
||||
"""
|
||||
for potential_repo in self.repo_list:
|
||||
if lora_name.startswith(potential_repo) and (
|
||||
@@ -86,6 +87,7 @@ class HfHubResolver(FilesystemResolver):
|
||||
Args:
|
||||
lora_name: Path to LoRA in HF Hub, e.g., <org>/<repo>/<subpath>
|
||||
maybe_repo: Path to the repo to match against if one exists.
|
||||
|
||||
"""
|
||||
if maybe_repo is None:
|
||||
return None
|
||||
@@ -108,6 +110,7 @@ class HfHubResolver(FilesystemResolver):
|
||||
|
||||
Args:
|
||||
repo_name: Name of the HF hub repo to inspect.
|
||||
|
||||
"""
|
||||
repo_files = await asyncio.to_thread(
|
||||
hf_api().list_repo_files,
|
||||
@@ -124,8 +127,7 @@ class HfHubResolver(FilesystemResolver):
|
||||
|
||||
|
||||
def register_hf_hub_resolver():
|
||||
"""Register the Hf hub LoRA Resolver with vLLM"""
|
||||
|
||||
"""Register the Hf hub LoRA Resolver with vLLM."""
|
||||
hf_repo_list = envs.VLLM_LORA_RESOLVER_HF_REPO_LIST
|
||||
is_enabled = (
|
||||
envs.VLLM_PLUGINS is not None and "lora_hf_hub_resolver" in envs.VLLM_PLUGINS
|
||||
|
||||
Reference in New Issue
Block a user