INNER CODE UNIT · Python

uv_sync

redis/fastapi-redis-sdk · noxfile.py:28

def uv_sync(session: nox.Session, *args: str) -> None:
    """Install dependencies into the session venv with ``uv sync``.

    Versions are resolved from pyproject.toml / uv.lock, keeping pyproject.toml
    the single source of truth. ``--active`` targets the nox-created venv.
    """
    session.run_install(
        "uv",
        "sync",
        "--active",
        *args,
        env={"UV_PROJECT_ENVIRONMENT": session.virtualenv.location},
    )


# ---------------------------------------------------------------------------
# Lint & format
# ---------------------------------------------------------------------------

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…