Skip to content

Init

init

init(path: Path | None = None) -> None

Initialize a new project with cluv.

This does the following:

  • Runs uv init --package --build-backend hatch --python 3.13 to initialize a new uv project in the current directory (if there isn't one already).
  • Adds a default configuration for Cluv in the [tool.cluv] section of pyproject.toml.