Lyxy Runner Python

用 uv 运行 Python 脚本的环境规则:一律优先 uv,依赖免预装、不污染系统 Python。自己写的临时脚本用 inline metadata(PEP 723)声明依赖,外部脚本用 --with 参数注入依赖并加 --no-project;禁止直接调用系统 Python,禁止 pip 等方式往主机装全局包;进入具体项目按项目自身约定走。凡是"跑个 Python 脚本""执行 .py 文件""加个依赖试一下""用 pandas 处理数据"这类 Python 执行需求,都按本规则执行。

lanyuanxiaoyao ca397a4 4.9 KB Updated

File contents

lanyuanxiaoyao/skills/tree/main/skills/lyxy-runner-python commit ca397a45a6

Frequently asked questions

npx skillmds@latest add lanyuanxiaoyao/lyxy-runner-python