Repository navigation
Python Support v1.0.0
中文
- 在 Lithe 0.8.10 及以上版本中,打开首行含 Python shebang 的无后缀脚本即可使用高亮、注释和 Pyrefly 诊断。
- Toolchains 可从 Conda 环境登记表、uv 自定义安装目录和其他受支持的环境位置发现 Python。项目的
.python-version和requires-python参与解释器选择。 - Pyrefly 与宿主选定的解释器保持一致。插件包内的后端可以在尚未安装 Python 时启动 Pyrefly。
- Build 面板可用 pytest 收集测试,按已发现的套件和用例精确运行。运行 pytest 和 debugpy 仍需要可用的项目解释器。
升级与兼容性
Python Support v1.0.0 要求 Lithe 0.8.9 或更新版本。Lithe 0.8.9 支持安装此插件并处理 .py、.pyi 和 .pyw 文件。从 0.8.10 开始,Lithe 还能按 shebang 自动识别无后缀脚本。
使用兼容的旧版 Lithe 时,仍可手动安装 Python Support v0.1.1 预发布版。手动安装时请选择对应操作系统和架构的 ZIP。
English
- With Lithe 0.8.10 or later, open extensionless scripts with a Python shebang to get highlighting, comment commands, and Pyrefly diagnostics.
- Toolchains can find Python from the Conda environment registry, a custom uv installation directory, and other supported environment locations. The project's
.python-versionandrequires-pythonhelp select an interpreter. - Pyrefly uses the interpreter selected in Lithe. The bundled backend can start Pyrefly before Python is installed.
- The Build panel can collect tests with pytest and run an exact discovered suite or case. Running pytest and debugpy still requires an available project interpreter.
Upgrade and compatibility
Python Support v1.0.0 requires Lithe 0.8.9 or later. Lithe 0.8.9 can install the plugin and work with .py, .pyi, and .pyw files. Starting with 0.8.10, Lithe can also recognize extensionless scripts by their shebang.
On compatible older versions of Lithe, you can still install the Python Support v0.1.1 prerelease manually. For manual installation, choose the ZIP for your operating system and architecture.
Lithe Store 会在收录后提供此版本。打开 设置 → 插件 → 插件市场,搜索 Python Support。
SHA-256
b5ee7bab108d944f525b4544bb6828fe822e09403dd86837d2e44d3abf9dbbb4 ./python-support-1.0.0-darwin-arm64.zip
7f4d578562d15a3d6a17407bb45c79abf2ac0dfaeb3788192dad0c2137d0187e ./python-support-1.0.0-darwin-x64.zip
becb1088d165c0d648267ccb73fd18147333a5b0f34e668961cf72bd1d79e310 ./python-support-1.0.0-linux-arm64.zip
3d5d9cc558c2ef723103e2c4964dbe69707ea78cfee42d83524da1b0fcda627d ./python-support-1.0.0-linux-x64.zip
eaed2dd44a251a8a8088ee47cab16ca5f79d0c6834d5ca7cf5d45b2a02b62562 ./python-support-1.0.0-windows-arm64.zip
8d84c841a44520e7c42346e2fdeb3c12941b54c66e49c6b27cb5b38692f2ad30 ./python-support-1.0.0-windows-x64.zip