| name | python-project-ops |
| description | Use this when managing Python dependencies with uv, running tests with pytest, linting with ruff, formatting code, type checking with mypy, or executing notebooks. |
Skill: Python Project Operations
Use this skill when changing dependencies, running tests, linting, formatting, type checking, or executing notebooks.
Package Manager: uv Only
- Use
uv for 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.toml and uv.lock after dependency changes.
Python Version
Common Commands
uv sync
uv run pytest
uv run ruff check .
uv run ruff format .
uv run mypy src
uv run papermill notebooks/input.ipynb notebooks/output.ipynb
bash scripts/run_quality_checks.sh
Workflow
- After modifying
pyproject.toml, run uv sync.
- After adding code, run
uv run ruff check . and uv run ruff format ..
- Before committing, run
uv run pytest and uv run mypy src.
- For notebook execution in CI or automation, prefer
papermill.