Skip to content
Back to skills

1 Version Pinning

ASecurity

Sub-skill of ops-uv-package-manager: 1. Version Pinning (+4).

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datapythongobashgitperformance

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill 1-version-pinning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1 Version Pinning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1 Version Pinning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-1-version-pinning-workspace-hub/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-1-version-pinning-workspace-hub)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ops-uv-package-manager-1-version-pinning
description: 'Sub-skill of ops-uv-package-manager: 1. Version Pinning (+4).'
version: 1.0.0
category: operations
type: reference
scripts_exempt: true
---

# 1. Version Pinning (+4)

## 1. Version Pinning


```bash
# Always pin Python version for reproducibility
uv python pin 3.11

# Use version ranges in pyproject.toml
# [project]
# requires-python = ">=3.10,<3.13"
```


## 2. Lock File Hygiene


```bash
# Commit uv.lock to version control
git add uv.lock

# Update regularly
uv lock --upgrade

# Review changes before committing
git diff uv.lock
```


## 3. Dependency Groups


```toml
# pyproject.toml - organize dependencies logically
[project]
dependencies = [
    "pandas>=2.0",
    "numpy>=1.24",
]

[project.optional-dependencies]
dev = [
    "pytest>=7.0",
    "ruff>=0.1.0",
]
viz = [
    "plotly>=5.0",
    "matplotlib>=3.7",
]
ml = [
    "scikit-learn>=1.3",
    "tensorflow>=2.15",
]

[tool.uv]
dev-dependencies = [
    "pytest>=7.0",
    "ruff>=0.1.0",
]
```


## 4. Scripts Configuration


```toml
# pyproject.toml - define project scripts
[project.scripts]
my-cli = "my_project.cli:main"

[tool.uv.scripts]
test = "pytest tests/ -v"
lint = "ruff check src/"
format = "black src/ tests/"
typecheck = "mypy src/"
all = ["lint", "typecheck", "test"]
```


## 5. Performance Tips


```bash
# Use parallel installation (default)
uv sync

# Cache packages globally
export UV_CACHE_DIR="$HOME/.cache/uv"

# Offline mode (use cached packages)
uv sync --offline

# Minimal install (no extras)
uv sync --no-dev --no-extras
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.