Skip to content

Commit ccdd100

Browse files
author
linwu
committed
fix: 修复代码格式问题 - 分割长参数列表以符合120字符限制
1 parent 251fb70 commit ccdd100

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/plugin/tools.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,12 @@ def install_requirements(plugin: str | None) -> None:
319319
pip_install = [sys.executable, '-m', 'pip', 'install', '-r', requirements_file]
320320
if settings.PLUGIN_PIP_CHINA:
321321
pip_install.extend(['-i', settings.PLUGIN_PIP_INDEX_URL])
322-
subprocess.check_call(ensurepip_install, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,shell=True)
322+
subprocess.check_call(
323+
ensurepip_install,
324+
stdout=subprocess.DEVNULL,
325+
stderr=subprocess.DEVNULL,
326+
shell=True
327+
)
323328
subprocess.check_call(pip_install, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
324329
except subprocess.CalledProcessError as e:
325330
raise PluginInstallError(f'插件 {plugin} 依赖安装失败:{e}') from e

0 commit comments

Comments
 (0)