PY
python-project-ops
Use this when managing Python dependencies with uv, running tests with pytest, linting with ruff, formatting code, type checking with mypy, or executing notebooks.
Install
mkdir -p .claude/skills/python-project-ops && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16617" && unzip -o skill.zip -d .claude/skills/python-project-ops && rm skill.zipInstalls to .claude/skills/python-project-ops
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use this when managing Python dependencies with uv, running tests with pytest, linting with ruff, formatting code, type checking with mypy, or executing notebooks.163 chars · catalog description✓ has a “when” trigger
About this skill
Skill: Python Project Operations
Use this skill when changing dependencies, running tests, linting, formatting, type checking, or executing notebooks.
Package Manager: uv Only
- Use
uvfor all dependency installation, synchronization, addition, removal, and updates. - Never use pip, pip3,
python -m pip, poetry, conda, pipenv, or easy_install. - Never manually create or edit
requirements.txt. - Use
uv add <package>when adding dependencies. - Use
uv add --group dev <package>for dev-only dependencies. - Review diffs in
pyproject.tomlanduv.lockafter dependency changes.
Python Version
- Python 3.11.
Common Commands
uv sync # Install/synchronize dependencies
uv run pytest # Run tests
uv run ruff check . # Lint
uv run ruff format . # Format
uv run mypy src # Type check
uv run papermill notebooks/input.ipynb notebooks/output.ipynb # Execute notebook
bash scripts/run_quality_checks.sh # Run all quality checks
Workflow
- After modifying
pyproject.toml, runuv sync. - After adding code, run
uv run ruff check .anduv run ruff format .. - Before committing, run
uv run pytestanduv run mypy src. - For notebook execution in CI or automation, prefer
papermill.