Skip to content
Skills Library
Programming · Automation

uv-python-execution

/uv-python-execution

How to run Python scripts, tests, evaluations, and tools using uv run and uvx in this repository. Use whenever executing Python code or test suites during repository and extension development.

Licence
Apache-2.0
Last repository change
09.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

How to run Python scripts, tests, evaluations, and tools using uv run and uvx in this repository. Use whenever executing Python code or test suites during repository and extension development.

Original author description

How to run Python scripts, tests, evaluations, and tools using uv run and uvx in this repository. Use whenever executing Python code or test suites during repository and extension development.

How it works

  1. 1. Why uv run?
  2. 2. Common Usage & Examples
Original SKILL.md headings · 82 lines, 324 words
SKILL.md preview
---
name: uv-python-execution
description: "How to run Python scripts, tests, evaluations, and tools using uv run and uvx in this repository. Use whenever executing Python code or test suites during repository and extension development."
license: Apache-2.0
---

# Running Python in this Repository with `uv run` and `uvx`

This repository uses `uv` for deterministic, hermetic Python package and environment management.

Whenever you need to run Python scripts, test suites, or CLI utilities in this workspace, **always use `uv run` or `uvx`** rather than calling system `python3` or hardcoded `.venv/bin/python` paths directly.

---

## 1. Why `uv run`?

1. **Automatic Virtual Environment Resolution**: `uv run` automatically picks up the repository's `.venv` and manages environment variables cleanly.
2. **Deterministic Dependencies**: Ensures compiled C/Rust extensions (like `numpy`, `safetensors`) match the exact Python interpreter ABI without relying on system-wide Python.
3. **Reproducibility**: If dependencies are specified or updated, `uv run` handles resolution reliably without dirtying system state.

---

## 2. Common Usage & Examples

### Running Functional & Evaluation Test Suites

Run the full functional test suite:
```bash
uv run evals/functional/test_functional.py
```

Run paper evaluation benchmarks:
```bash
uv run evals/run_paper_evals.py --exp 1
```

### Running the Weight-Space Programming Engine Directly

Invoke the engine CLI directly via `uv run`:
```bash
# Inspect a model checkpoint
uv run harness/wsp_engine.py inspect '{"checkpoint": "path/to/model.safetensors", "operation": "summary"}'

# Download a Hugging Face model
uv run harness/wsp_engine.py hf_download '{"repo_id": "openai-community/gpt2", "filenames": ["config.json", "model.safetensors"]}'

# Compare two checkpoints
uv run harness/wsp_engine.py compare '{"checkpoint_a": "base.safetensors", "checkpoint_b": "edited.safetensors"}'
```

### Running Python One-Liners or Custom Scripts

Run a standalone script:
```bash
uv run python path/to/script.py
```

Run a one-liner with numpy preloaded:
```bash
uv run python -c "import numpy as np; print(np.__version__)"
```

Execute with temporary extra dependencies without modifying the environment:
```bash
uv run --with matplotlib python -c "import matplotlib; print('Matplotlib loaded successfully')"
```

### Running One-Off Standalone Tools with `uvx`

Use `uvx` to execute CLI tools without installing them into the project environment:

```bash
# Code linting & formatting with ruff
uvx ruff check .
uvx ruff format --check .

# Static type checking
uvx pyright harness/
```

### Checking Environment & Installed Packages

Inspect installed packages:
```bash
uv pip list
```

Versions

The database has no other skills named uv-python-execution.

Database snapshot: 13.11.2026 · package version 2e4a6bab6faa (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100uv-tool-management
    Install and manage global Python CLI tools with uv (pipx alternative). Use when the user mentions uv tool, uvx, installing CLI tools globally, or pipx replacement.
  • 86python-engineering
    Implement or review maintainable Python code. Use when adding Python modules, scripts, libraries, tests, or packaging.
  • 100uv-workflow
    Use when a coding agent needs to run Python code, modules, one-liners, tools, tests, or standalone scripts through uv, or create and maintain PEP 723 scripts with uv init/add/remove --script. Avoid direct python/python3 shell entrypoints.
  • 100uv
    Installs Python packages, creates virtual environments, locks dependencies and manages Python versions with one fast command-line tool that replaces pip, pip-tools, pipx, poetry, pyenv and virtualenv. Use when a user asks to set up a Python project, add or upgrade a dependency,…
  • 90python-development
    Workflow guidance for developing Python code in the Agent Framework repository. Use this when writing or modifying Python source files under python/.
  • 86python-tests
    Run focused Python tests with a helper script. Use this when 用户说“运行测试”“单元测试”“run python tests”。

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.