优化依赖管理配置,移除不必要的allowed_auto_install选项,更新文档以更清晰地描述自动安装功能的主开关。调整相关代码以简化逻辑,确保自动安装行为通过单一配置控制。
This commit is contained in:
@@ -66,13 +66,7 @@ class DependencyConfig:
|
||||
"--disable-pip-version-check"
|
||||
]
|
||||
|
||||
@property
|
||||
def allowed_auto_install(self) -> bool:
|
||||
"""是否允许自动安装"""
|
||||
config = self._get_config()
|
||||
if config and hasattr(config, 'dependency_management'):
|
||||
return config.dependency_management.allowed_auto_install
|
||||
return True
|
||||
|
||||
|
||||
@property
|
||||
def prompt_before_install(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user