Skip to content

API Reference

The public API is intentionally small and centered on a few building blocks:

  • setup_uv() and the uv_pip_*() helpers for environment bootstrap.
  • pytest() and pytest_bench() for test execution.
  • supports_cuda() and cuda_driver_version() for GPU-aware session guards.

Use the pages in this section when you need exact signatures or parameter behavior. The user guide is the better place to start if you want examples first.

liblaf.nox_recipes

Composable helpers for building nox sessions.

liblaf.nox_recipes packages a small set of focused helpers for common automation tasks:

  • bootstrapping uv-managed environments,
  • running pytest with project-friendly defaults, and
  • guarding CUDA-only sessions on machines without NVIDIA drivers.

The package is designed to be imported into a noxfile.py and used from regular @nox.session functions.