Skip to content

Instantly share code, notes, and snippets.

@bedwards
Last active March 20, 2026 01:48
Show Gist options
  • Select an option

  • Save bedwards/91b1631a239cdf390e84bae7a58665c9 to your computer and use it in GitHub Desktop.

Select an option

Save bedwards/91b1631a239cdf390e84bae7a58665c9 to your computer and use it in GitHub Desktop.
uv
curl -LsSf https://astral.sh/uv/install.sh | sh

export UV_PYTHON=3.13

uv self update

uv tool install yt-dlp
yt-dlp

uv init my-app
cd my-app
uv run main.py

uv add --dev ruff pytest
uv run ruff check --fix
uv run ruff format
uv run pytest

uv add --group local ipython
uv run ipython

uv add requests

uv cache clean
rm -rf .venv
find . -type d -name "__pycache__" -exec rm -rf {} +

uv sync --all-groups

uv pip list
[project]
name = "my-app"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []
[dependency-groups]
dev = [
"pytest>=9.0.2",
"ruff>=0.15.7",
]
local = [
"ipython>=9.11.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/my_app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment