暴露全部api,解决循环import问题
This commit is contained in:
@@ -4,11 +4,16 @@
|
||||
提供插件开发和管理的实用工具
|
||||
"""
|
||||
|
||||
from src.plugin_system.utils.manifest_utils import (
|
||||
from .manifest_utils import (
|
||||
ManifestValidator,
|
||||
ManifestGenerator,
|
||||
validate_plugin_manifest,
|
||||
generate_plugin_manifest,
|
||||
)
|
||||
|
||||
__all__ = ["ManifestValidator", "ManifestGenerator", "validate_plugin_manifest", "generate_plugin_manifest"]
|
||||
__all__ = [
|
||||
"ManifestValidator",
|
||||
"ManifestGenerator",
|
||||
"validate_plugin_manifest",
|
||||
"generate_plugin_manifest",
|
||||
]
|
||||
|
||||
@@ -305,7 +305,7 @@ class ManifestValidator:
|
||||
# 检查URL格式(可选字段)
|
||||
for url_field in ["homepage_url", "repository_url"]:
|
||||
if url_field in manifest_data and manifest_data[url_field]:
|
||||
url = manifest_data[url_field]
|
||||
url: str = manifest_data[url_field]
|
||||
if not (url.startswith("http://") or url.startswith("https://")):
|
||||
self.validation_warnings.append(f"{url_field}建议使用完整的URL格式")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user