Skip to content

Update to use uv init #572

Description

This tool current defines the repo structure and the contents of the pyproject.toml in a fairly inflexible manner.

Since the only packaging option is now uv, we should consider using the uv init command to create the repo structure. This will allow more flexibility in the types of software that can be built (libraries, executables, packages, etc)

Proposed approach

  1. Continue to use cookiecutter for configurable options and non-python package files (pre-commit, .github/, etc)
  2. In the post-gen hooks script:
    1. Run uv init using configurable options selected in the cookiecutter command.
    2. Add the extra config to the generated pyproject.toml (mypy, ruff, pytest, etc)
    3. Keep existing approach of adding dependencies

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions