running-python

yallup 的头像作者 yallup

运行 Python 脚本并使用 uv 管理项目。在需要运行 Python 脚本、执行 Python 代码、运行 pytest 或安装包时使用。始终使用 uv 而不是 pip 或裸 Python。

📖 中文导读:运行 Python 脚本并使用 uv 管理项目。在需要运行 Python 脚本、执行 Python 代码、运行 pytest 或安装包时使用。始终使用 uv 而不是 pip 或裸 Python。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: running-python description: Runs Python scripts and manages projects using uv. Use when asked to run a python script, execute python code, run pytest, or install packages. Always uses uv instead of pip or bare python. version: 2.0.0

Python with uv

Always use uv - faster and more reliable than pip/poetry.

Commands

# Run scripts - ALWAYS use uv run
uv run python script.py
uv run pytest

# Dependencies
uv add numpy
uv sync

Rules

  1. Never python script.py - always uv run python script.py
  2. Never pip install - always uv add or uv sync