Use uv in the nox sessions

Make `uv` the backend for the virtual environments,
and install the packages with the versions pinned in uv.lock,
exported into a constraints file with `uv export`,
instead of `poetry export` and `poetry install`.

Also, use `uv run` instead of `poetry run`.
This commit is contained in:
Alexander Hess 2026-11-25 16:57:50 +01:00
commit 3533dc6c36
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -477,3 +477,10 @@ markers = [
# `uv sync` installs all [dependency-groups] into the local develop environment
# whereas the `nox` sessions install only the groups they need
default-groups = "all"
# Rebuild the package when its source files change;
# by default, `uv` only watches the pyproject.toml file
cache-keys = [
{ file = "pyproject.toml" },
{ file = "src/**/*.py" },
]