Skip to content

Instantly share code, notes, and snippets.

@yhoiseth
yhoiseth / upgrade.py
Last active May 11, 2025 18:26
Upgrade all dependencies to their latest version using uv
#!/usr/bin/env python
# https://gist.github.com/yhoiseth/c80c1e44a7036307e424fce616eed25e
from typing import Any
from re import match, Match
import toml
import subprocess
def main() -> None:
with open("pyproject.toml", "r") as file: