#!/bin/bash
set -e
set -o pipefail

PROJECT_ROOT=$(dirname $(dirname $(realpath $0)))

pushd ${PROJECT_ROOT} > /dev/null

# Re-lock after editing pyproject.toml. Versions already in uv.lock are kept where they
# still satisfy pyproject.toml; pass `--upgrade` to move everything to the newest allowed.
uv lock "$@"
