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:
parent
d99b0e9799
commit
3533dc6c36
1 changed files with 47 additions and 33 deletions
|
|
@ -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" },
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue